{"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 suppliers with the highest average unit price of products supplied."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, avg(p.unitPrice) AS avgUnitPrice\\nORDER BY avgUnitPrice DESC\\nLIMIT 5\\nRETURN s.companyName AS Supplier, avgUnitPrice AS AverageUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians that have not been assigned to repair machines?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE NOT EXISTS ((:RepairAssignment)-[:ASSIGNED_TO]->(t))\\nRETURN t.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of label and description from Topic where label does not start with P!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE NOT n.label STARTS WITH 'P'\\nRETURN DISTINCT n.label AS label, n.description AS description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the total number of companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?"}, {"role": "assistant", "content": "MATCH (n:District)\\nWHERE n.City_Population >= 200000 AND n.City_Population <= 2000000\\nRETURN n.District_name, n.City_Population"}]} {"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 1-31 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '1-31'}]->(m:Journal)\\nWHERE m.title < 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": "What is the name of the shop that is hiring the largest number of employees?"}, {"role": "assistant", "content": "MATCH (t1:hiring)-[]-(t2:shop)\\nWITH t2, count(t1.Shop_ID) AS cnt\\nRETURN t2.Name\\nORDER BY cnt DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?"}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWHERE m.Award <> \"Tony Award\"\\nRETURN DISTINCT m.Nominee"}]} {"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": "Search for the abstract values from 20 Article that are linked to DOI via HAS_DOI and return abstract along with the respective DOI counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\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": "List the first 3 genres of movies with the lowest average revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, avg(m.revenue) AS avg_revenue\\nORDER BY avg_revenue ASC\\nLIMIT 3\\nRETURN g.name AS genre, avg_revenue"}]} {"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 for at least three different streams and are also moderators for at least one stream?"}, {"role": "assistant", "content": "MATCH (user:User)-[:VIP]->(stream:Stream)\\nWITH user, count(DISTINCT stream) AS vip_stream_count\\nWHERE vip_stream_count >= 3\\nMATCH (user)-[:MODERATOR]->(:Stream)\\nRETURN count(DISTINCT user) AS vip_moderator_count"}]} {"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": "\"show me the oldest tweet id\""}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.id\\nORDER BY t.created_at ASC\\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 \"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 = 2000, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year='2000'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, 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": "List the 5 most recent users who started following 'Neo4j'."}, {"role": "assistant", "content": "MATCH (neo4j:Me {screen_name: 'neo4j'})<-[:FOLLOWS]-(user:User)\\nRETURN user.screen_name, user.name, user.followers, user.following, user.profile_image_url, user.url, user.location, user.statuses\\nORDER BY user.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many patients have been diagnosed with a disease by Dr. Smith and also have an allergy?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_ALLERGY]->(:Allergy), (p)-[:HAS_DOCTOR]->(smith:Doctor {name: 'Dr. Smith'})-[:GAVE_DIAGNOSIS]->(diagnosis:Diagnosis)<-[:HAS_DIAGNOSIS]-(p)\\nRETURN COUNT(distinct p) as PatientsNum"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco."}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Location = \"Northridge\" AND c.County = \"Los Angeles\" OR c.Location = \"San Francisco\" AND c.County = \"San Francisco\"\\nRETURN c.Campus"}]} {"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 amplified by 'Me' according to the AMPLIFIES relationship?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(user:User)\\nRETURN user.screen_name AS AmplifiedUser"}]} {"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:Me {name: 'Neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN user.name, user.screen_name, user.followers, user.following\\nORDER BY user.followers 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 1006?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE n.article_id = 1006\\nRETURN properties(m) AS props"}]} {"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 2010-06-18!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2010-06-18'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Name all the products with next entry ID greater than 8."}, {"role": "assistant", "content": "MATCH (c:CatalogContent)\\nWHERE c.next_entry_id > 8\\nRETURN c.catalog_entry_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 average number of followers for users who are both chatters and VIPs of the same stream?"}, {"role": "assistant", "content": "MATCH (u:User)-[:CHATTER]->(s:Stream)-[:VIP]->(u)\\nRETURN avg(u.followers)"}]} {"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 with the lowest score."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.score\\nORDER BY q.score ASC\\nLIMIT 3"}]} {"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.1016/S0764-4442(00)00217-2!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.name = '10.1016/S0764-4442(00)00217-2'\\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": "Find the `customerID` and `shipCity` for the customer with the highest total order value (sum of `unitPrice` * `quantity` for all their orders)."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[orders:ORDERS]->(p:Product)\\nWITH c, o, sum(toFloat(orders.unitPrice) * orders.quantity) AS totalOrderValue\\nWITH c, max(totalOrderValue) AS maxTotalOrderValue, collect(o.shipCity) AS shipCities\\nWHERE size(shipCities) > 0\\nRETURN c.customerID, shipCities[0] AS shipCity\\nORDER BY maxTotalOrderValue DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the event that happened in the most recent year?"}, {"role": "assistant", "content": "MATCH (e:Event)\\nRETURN e.Name\\nORDER BY e.Year DESC\\nLIMIT 1"}]} {"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 293-299!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '293-299'\\nRETURN n.article_id AS article_id, count(m) AS 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 entities that have undergone a company type change from the original registration."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE EXISTS { (e)-[:same_company_as]->(e2:Entity) \\nWHERE e.company_type IS NOT NULL AND e2.company_type IS NOT NULL AND e.company_type <> e2.company_type }\\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 is the average `unitPrice` of products that have been ordered in quantities greater than 10?"}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product)\\nWHERE rel.quantity > 10\\nWITH avg(toFloat(rel.unitPrice)) AS avgPrice\\nRETURN avgPrice"}]} {"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": "Who is the first student to register? List the first name, middle name and last name."}, {"role": "assistant", "content": "MATCH (students:Students)\\nRETURN students.first_name,students.middle_name,students.last_name\\nORDER BY students.date_first_registered ASC\\nLIMIT 1"}]} {"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 where title is Solutions to congruences using sets with the property of Baire, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{title:'Solutions to congruences using sets with the property of Baire'})-[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 users have an area less than 3 and have interacted with 'inchristbl.bsky.social'?"}, {"role": "assistant", "content": "MATCH (u1:User {label: \"inchristbl.bsky.social\"})-[:INTERACTED]->(u2:User)\\nWHERE u2.area < 3\\nRETURN u2.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Topic where description contains 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, along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.description CONTAINS '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 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": "Find the entities with the country_codes 'HKG' and service provider 'Mossack Fonseca'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.country_codes = 'HKG' AND e.service_provider = 'Mossack Fonseca'\\nRETURN e"}]} {"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 the first 3 users who have interacted with someone located at y values less than -5000."}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.y < -5000\\nRETURN u1\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Which major has least number of students? List the major and the number of students."}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Major, COUNT(s)\\nORDER BY COUNT(s) ASC\\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": "Find the top 5 movies with the most 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 \"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 users by the number of people they are following."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.screen_name, count{(u)-[:FOLLOWS]->(:User)} AS followingCount\\nORDER BY followingCount 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": "Who does 'neo4j' interact with most frequently?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:INTERACTS_WITH]->(user:User)\\nRETURN user.screen_name, COUNT(*) AS interaction_count\\nORDER BY interaction_count 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 all movies with a 'Pretty funny at times' review summary."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary = 'Pretty funny at times'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments is 21 pages, AMS-LaTeX and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'21 pages, AMS-LaTeX'})-[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 \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show publishers that have more than one publication."}, {"role": "assistant", "content": "MATCH (p:Publication)\\nWITH p.Publisher as Publisher, COUNT(p) AS count\\nWHERE count > 1 return Publisher"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many different levels do members have?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nRETURN COUNT(DISTINCT m.Level)"}]} {"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 are chatters of streams that have a \"VIP\" relationship with users who also are VIPs of streams with the game \"Rust\"."}, {"role": "assistant", "content": "MATCH (rust_stream:Stream)-[:PLAYS]->(game:Game {name: \"Rust\"})\\nMATCH (rust_stream)-[:VIP]->(vip_user:User)\\nMATCH (vip_user)-[:VIP]->(other_stream:Stream)\\nMATCH (chatter_user:User)-[:CHATTER]->(other_stream)\\nRETURN DISTINCT chatter_user.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": "Which businesses have been reviewed on '2018-09-10'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date = date('2018-09-10')\\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": "Name the first 3 movies that were produced by 'Pixar Animation Studios' and have a budget above 50 million dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.budget > 50000000\\nRETURN m.title\\nORDER BY m.release_date\\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 questions with the same number of favorites as the question with id 62220505."}, {"role": "assistant", "content": "MATCH (targetQuestion:Question {id: 62220505})\\nWITH targetQuestion.favorites AS targetFavorites\\nMATCH (question:Question)\\nWHERE question.favorites = targetFavorites\\nRETURN question.id, question.text"}]} {"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": "Fetch title of the Article that are connected to Categories via HAS_CATEGORY!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[:HAS_CATEGORY]->(:Categories) }\\nRETURN 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": "Show the tweets where 'neo4j' is mentioned and the tweet has a favorite count over 100."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {screen_name: 'neo4j'})\\nWHERE t.favorites > 100\\nRETURN t.text AS tweet_text, t.favorites AS favorite_count, t.created_at AS created_at"}]} {"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 1006 or article_id is less than 1048!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1006 OR n.article_id < 1048\\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": "List the first 5 tweets with the highest number of favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.text, t.favorites\\nORDER BY t.favorites 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 customers have ordered the most distinct products?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWITH c, COUNT(DISTINCT p.productID) AS distinctProducts\\nORDER BY distinctProducts DESC\\nLIMIT 3\\nRETURN c.companyName AS customerName, distinctProducts"}]} {"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 shipped to 'Denmark'?"}, {"role": "assistant", "content": "MATCH (o:Order {shipCountry: 'Denmark'})-[:ORDERS]->(p:Product)\\nWITH avg(toFloat(o.discount)) AS averageDiscount\\nRETURN averageDiscount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments equal to 26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt\n 2005, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt 2005'})-[:HAS_CATEGORY]->(c:Categories)-[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": "List the movies with more than 100 votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes > 100\\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": "Which 3 production companies have the highest total revenues from their movies?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.revenue IS NOT NULL\\nRETURN pc.name, sum(m.revenue) AS total_revenue\\nORDER BY total_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": "What are the names of the top 3 streams that have a VIP user?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:VIP]-(:User)\\nRETURN s.name AS stream_name\\nORDER BY s.total_view_count DESC\\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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names of students whose first names contain letter \"a\"."}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Fname =~ \"(?i).*a.*\"\\nRETURN DISTINCT s.Fname"}]} {"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 the same country as the entity with the name \"Deutsche Bank AG\"?"}, {"role": "assistant", "content": "MATCH (e1:Entity {name: \"Deutsche Bank AG\"})\\nMATCH (e1)-[:COUNTRY]->(c:Country)\\nMATCH (c)<-[:COUNTRY]-(e2:Entity)\\nMATCH (e2)-[:ORIGINATOR]->(f:Filing)\\nWITH avg(f.amount) AS averageAmount\\nRETURN averageAmount"}]} {"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 ordered by customers in the 'USA'?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[oi:ORDERS]->(p:Product)\\nWHERE c.country = 'USA'\\nWITH avg(toFloat(oi.unitPrice)) AS avgPrice\\nRETURN avgPrice"}]} {"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 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 10 OR n.cluster < 7\\nRETURN n\\nLIMIT 8"}]} {"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 2009-10-31 and list their properties, including those of UpdateDate!"}, {"role": "assistant", "content": "MATCH (b:UpdateDate)-[r]->(n)\\nWHERE b.update_date = '2009-10-31'\\nRETURN properties(b) AS UpdateDate_props, properties(n) 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": "Which movies have the most keywords associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[r:HAS_KEYWORD]->(k:Keyword)\\nRETURN m.title AS movie, count(r) AS num_keywords\\nORDER BY num_keywords DESC\\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 most common original language for movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nMATCH (m)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWITH l, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN l.name AS language, movieCount\\nLIMIT 1"}]} {"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 Neeman or first_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Neeman' OR n.first_name IS NOT NULL\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Categories for which category_id=4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 521-554 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '521-554'}]->(m:Journal)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.name) AS avg_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 are the top 3 producers by the number of movies with different taglines?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.tagline IS NOT NULL\\nWITH p, count(DISTINCT m.tagline) AS distinctTaglines\\nORDER BY distinctTaglines DESC\\nLIMIT 3\\nRETURN p.name, distinctTaglines"}]} {"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 a8!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id =~'a8.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the names of editors that are not on any journal committee."}, {"role": "assistant", "content": "MATCH (e:Editor)\\nWHERE NOT (:Journal)-[:EDited_BY]->(e)\\nRETURN e.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show names of technicians in ascending order of quality rank of the machine they are assigned."}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T3:Technician), (T1)-[:ASSIGNED_TO]->(T2:Machine)\\nRETURN T3.Name\\nORDER BY T2.quality_rank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Topic that are missing the description!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description IS NULL\\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": "Which questions have an createdAt date exactly on '2020-06-05T21:49:16Z'?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt = datetime('2020-06-05T21:49:16Z')\\nRETURN q"}]} {"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 with a budget higher than $100 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\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": "Find the first 3 reviews with the highest star ratings."}, {"role": "assistant", "content": "MATCH (r:Review)\\nWITH r\\nORDER BY r.stars DESC, r.date ASC\\nLIMIT 3\\nRETURN r.reviewId, r.text, r.stars, r.date"}]} {"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 = 'SAM' AND e.struck_off_date CONTAINS '2013'\\nRETURN e.name AS entity_name, e.struck_off_date AS struck_off_date"}]} {"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 categories of businesses reviewed by Will."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)-[:IN_CATEGORY]->(c:Category)\\nRETURN DISTINCT c.name AS categories"}]} {"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 (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title\\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": "How many paths are there between Article where article_id is 1048 and Keyword, for which name equals 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 p=(a:Article{article_id:'1048'})-[*]->(d:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})\\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": "Find the three countries with the most originator banks in the filings."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS country, COUNT(DISTINCT e.id) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 3\\nRETURN country, 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": "How many questions have a 'createdAt' date on or after June 5, 2020, and are tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWHERE q.createdAt >= datetime('2020-06-05T00:00:00Z')\\nRETURN count(q) AS NumberOfQuestions"}]} {"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 5 entities with addresses in 'Hong Kong'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE a.countries = 'Hong Kong'\\nRETURN e\\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 amount filed by entities whose country code is 'CHN'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.code = 'CHN'\\nWITH e\\nMATCH (e)-[:FILED]->(f:Filing)\\nRETURN avg(f.amount)"}]} {"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 19 pages, AMSLatex, references added!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'19 pages, AMSLatex, references added'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 dd0a54fea06e7b7a384741aac9313d65?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})-[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": "What are the names of businesses in San Mateo that are categorized as 'Coffee'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.city = 'San Mateo' AND c.name = 'Coffee'\\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 questions that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question {answered: true})\\nRETURN q\\nORDER BY q.createdAt\\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": "Who are the top 5 users with a size less than 2.0?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size < 2.0\\nRETURN u\\nORDER BY u.size 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": "Who are the users that 'neo4j' mentions most frequently in their tweets?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:MENTIONS]->(mentioned:User)\\nRETURN mentioned.screen_name, count(t) AS mentions_count\\nORDER BY mentions_count DESC"}]} {"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)-[i:INTERACTS45]->(c2:Character)\\nWHERE i.weight > 50\\nRETURN c1.name AS character1, c2.name AS character2, i.weight AS weight"}]} {"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 year the user \"Omar Huffman\" was born."}, {"role": "assistant", "content": "MATCH (u:User {name: \"Omar Huffman\"})-[:RATED]->(m:Movie)\\nWITH u, substring(m.released, 1, 4) AS userBirthYear\\nMATCH (movie:Movie)\\nWHERE substring(movie.released, 1, 4) = userBirthYear\\nRETURN DISTINCT movie.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": "List the first 5 directors who have directed a movie with an imdbRating of 9 or higher."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.imdbRating >= 9\\nRETURN DISTINCT d.name\\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 are the roles of Keanu Reeves in 'The Matrix'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE p.name = 'Keanu Reeves' AND m.title = 'The Matrix'\\nRETURN r.roles AS roles"}]} {"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 Notes for a Quantum Index Theorem, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Notes for a Quantum Index Theorem'})-[:PUBLISHED_IN]->(c:Journal)-[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": "Find the total number of Author for which the author_id is missing!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id IS NULL\\nRETURN count(n)"}]} {"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 Published by Geometry and Topology at\n http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'Published by Geometry and Topology at http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html'})-[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 three directors have directed movies in more than one language?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, collect(DISTINCT m.languages) AS languages\\nWHERE size(languages) > 1\\nRETURN d.name, languages\\nORDER BY size(languages) 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": "Which nodes have a common property with Article where title is Classification of Subsystems for Local Nets with Trivial Superselection\n Structure and are PUBLISHED_IN linked to Journal, where pages is 89-106?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Classification of Subsystems for Local Nets with Trivial Superselection Structure'})-[r:PUBLISHED_IN {pages :'89-106'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 and URLs of the first 3 streams that are part of a team created before 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2015-01-01T00:00:00Z')\\nRETURN s.name AS streamName, s.url AS streamURL\\nORDER BY t.createdAt\\nLIMIT 3"}]} {"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 The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra, and also to another node?"}, {"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), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 label is not Population Dynamics_0!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label <> 'Population Dynamics_0'\\nRETURN DISTINCT n.description AS description"}]} {"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 people who have written and directed the same movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)\\nWHERE (p)-[:DIRECTED]->(m)\\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": "Which top 5 people have directed movies with more than 200 votes?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.votes > 200\\nWITH p, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 5\\nRETURN p.name AS director, num_movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Return the day Number and stored date for all the documents."}, {"role": "assistant", "content": "MATCH (a:AllDocument)\\nMATCH (b:RefCalendar)\\nWHERE a.Date_Stored = b.Calendar_Date\\nRETURN a.Date_Stored, b.Day_Number"}]} {"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 countries with the highest number of filings involving transactions under $500,000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS|:CONCERNS|:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.amount < 500000\\nWITH c, count(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 5\\nRETURN c.name AS country_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": "Find streams where the user 'itsbigchase' is both a moderator and a chatter."}, {"role": "assistant", "content": "MATCH (u:User {name: 'itsbigchase'})\\nMATCH (s:Stream)\\nWHERE exists{(u)-[:MODERATOR]->(s)} AND exists{(u)-[:CHATTER]->(s)}\\nRETURN s"}]} {"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 On the collision between two PNG droplets!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'On the collision between two PNG droplets'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average pages per minute color?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN avg(p.pages_per_minute_color)"}]} {"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 with a unitsInStock value above 80?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.unitsInStock > 80\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of storms that did not affect any regions?"}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE NOT EXISTS((s)-[:AFFECTS]->(:Region))\\nRETURN s.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 are at the end of a path starting from Article, with abstract equal to 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, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a: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]->(c:Categories)-[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": "List the first 3 entities that are originators in filings where the originator bank is 'CIMB Bank Berhad' and the amount is above 500000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank = 'CIMB Bank Berhad' AND f.amount > 500000\\nRETURN e.name AS originator_entity_name\\nORDER BY f.begin\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 6ecd77a291d325cb3e01160880d88c69 and Journal, for which journal_id is 79942321e19994e38ad2e372af21c893?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'}), (b:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})\\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 games that have been played by more than five different streams."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH g, count(DISTINCT s) AS streamCount\\nWHERE streamCount > 5\\nRETURN g.name AS Game, streamCount"}]} {"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 have products with a unit price less than $10?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitPrice < 10\\nRETURN DISTINCT c.categoryName"}]} {"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 with a reputation over 1000 has asked the most questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 1000\\nWITH u, COUNT(q) AS question_count\\nORDER BY question_count DESC\\nLIMIT 1\\nRETURN u.display_name AS user, u.reputation AS reputation, question_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 users wrote reviews for businesses located on 'Main St'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.address CONTAINS 'Main St'\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where author_id is a95ff40457bf3cae9c6852c6a14937fa and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})-[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 \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where name is 10.1007/s00365-002-0501-6 and 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?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00365-002-0501-6'}), (b: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. '})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 20 !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments STARTS WITH '20 '\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "How many authors are there?"}, {"role": "assistant", "content": "MATCH (a:Author)\\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": "Which characters have an INTERACTS relationship in book 1 with a weight over 150?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1]->(c2:Character)\\nWHERE r.weight > 150\\nRETURN c1.name AS character1, c2.name AS character2, r.weight AS weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the average capacity of the stadiums that were opened in year 2005?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nWHERE s.Opening_year = 2005\\nRETURN avg(s.Capacity)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Author where author_id is a95ff40457bf3cae9c6852c6a14937fa and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})-[r]->(n)\\nRETURN properties(n), 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 IMDb ratings of movies that have a plot mentioning 'evil exterminator'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'evil exterminator'\\nRETURN m.title, m.imdbRating"}]} {"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 are at the end of a path starting from Article, with title equal to Rational points on compactifications of semi-simple algebraic groups, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Rational points on compactifications of semi-simple algebraic groups'})-[:HAS_KEY]->(c:Keyword)-[r]->(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": "Which users with a reputation over 100000 asked questions that have been answered?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 100000 AND q.answered = true\\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": "What are the first 3 filings with a beneficiary bank located in 'Singapore' that have the smallest amounts?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'Singapore'\\nRETURN f\\nORDER BY f.amount ASC\\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 are at the end of a path starting from Article, with title equal to Capital allocation for credit portfolios with kernel estimators, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Capital allocation for credit portfolios with kernel estimators'})-[:HAS_CATEGORY]->(c:Categories)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians by ascending order of age?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Name\\nORDER BY t.Age"}]} {"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 with a size other than 2.51 and an area greater than 2."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size <> 2.51 AND u.area > 2\\nRETURN DISTINCT u.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": "List the top 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 \"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 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:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})-[*]-(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 \"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": "Fetch article_id of the Article that are connected to Journal via PUBLISHED_IN where meta are at most 220!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.meta < '220'}\\nRETURN n.article_id AS article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the title and the article_id for those Article where title starts with H!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH 'H'\\nRETURN n.title AS title, n.article_id AS article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Topic where description contains 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., along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.description CONTAINS '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, TYPE(r)"}]} {"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 Math. Nachr, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Nachr'})-[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": "List the names of people who acted in movies directed by Nancy Meyers."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Nancy Meyers'})-[:DIRECTED]->(m:Movie)\\nMATCH (a:Person)-[:ACTED_IN]->(m)\\nRETURN DISTINCT a.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 top 3 highest rated reviews and which movies they are associated with?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nRETURN m.title AS movie, r.rating AS rating, r.summary AS review\\nORDER BY r.rating 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 top 5 largest amounts filed by 'Barclays Bank Plc' as the beneficiary bank?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity {name: 'Barclays Bank Plc'})\\nRETURN f.id AS FilingID, f.amount AS Amount\\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 top 5 questions that have a negative score."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score < 0\\nRETURN q.title, q.score, q.link\\nORDER BY q.score ASC\\nLIMIT 5"}]} {"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 name is not 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 (n:Keyword)\\nWHERE n.name <> 'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'\\nRETURN DISTINCT n.name AS name"}]} {"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 01!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id =~'01.*'\\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 average budget of movies in which Tom Hanks was cast for?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Tom Hanks\"})-[:CAST_FOR]->(m:Movie)\\nRETURN avg(m.budget)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is Bernhard and 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:Author{first_name:'Bernhard'}), (b: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.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 403507 and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'403507'})-[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 \"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 2014-11-11!"}, {"role": "assistant", "content": "MATCH path=(:UpdateDate {update_date:'2014-11-11'})-->()\\nRETURN path"}]} {"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 3 suppliers who supply the most products that have been discontinued."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product {discontinued: true})\\nWITH s, count(p) AS discontinuedProducts\\nORDER BY discontinuedProducts DESC\\nLIMIT 3\\nRETURN s.companyName, discontinuedProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_status_code = \"done\" AND d.document_type_code = \"Paper\"\\nMATCH (s:RefShippingAgent {shipping_agent_name: \"USPS\"})\\nWHERE NOT EXISTS ((d)-[:HAS_SHIPPING_AGENT]->(s))\\nRETURN d.document_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 is the text of the review with the lowest stars rating?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nWITH r\\nORDER BY r.stars ASC\\nLIMIT 1\\nRETURN r.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the cluster for Topic combined with the journal_id for Journal!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.cluster AS Records\\nUNION ALL\\nMATCH (m:Journal)\\nRETURN m.journal_id 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": "List the characters with a 'pagerank' between 0.5 and 1.0, ordered by descending 'book45PageRank'."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE 0.5 <= c.pagerank <= 1.0\\nRETURN c.name AS character_name, c.book45PageRank\\nORDER BY c.book45PageRank DESC"}]} {"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 top 3 most expensive products?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p\\nORDER BY p.unitPrice DESC\\nLIMIT 3\\nWITH collect(p.productID) AS topProducts\\nMATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE p.productID IN topProducts\\nMATCH (c:Customer)-[:PURCHASED]->(o)\\nRETURN DISTINCT c.customerID, c.companyName"}]} {"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 1052?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE n.article_id = 1052\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the different main industries for all companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN DISTINCT c.Main_Industry"}]} {"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}"}, {"role": "user", "content": "Look for the article_id of the Article that is not related to the Author with the last_name Dunajski!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {last_name: 'Dunajski'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.article_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 highest-grossing movie in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is math.GT and Author, for which author_id is 788db042978edbbfc654927e23ac21d1?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.GT'}), (b:Author{author_id:'788db042978edbbfc654927e23ac21d1'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 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 or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.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. ' OR n.title IS NOT NULL\\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": "List the tweets that mention users who have retweeted tweets that mention \"Neo4j\"."}, {"role": "assistant", "content": "MATCH (me:Me {name: 'Neo4j'})<-[:MENTIONS]-(tweet1:Tweet)<-[:RETWEETS]-(:Tweet)<-[:POSTS]-(user:User)<-[:MENTIONS]-(tweet2:Tweet)\\nRETURN DISTINCT tweet2.id_str"}]} {"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 posted by 'Neo4j' containing a hashtag."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN t, h"}]} {"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 most units on order."}, {"role": "assistant", "content": "MATCH (p:Product)\\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 \"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 been moderated by the same user for over 5 years."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWHERE u.createdAt < datetime() - duration('P5Y')\\nWITH s, u\\nORDER BY s.createdAt\\nLIMIT 5\\nRETURN s.name AS stream, u.name AS moderator"}]} {"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": "Retrieve the first 3 characters who interact in book 1 with a weight of exactly 291."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS1 {weight: 291, book: 1}]->(:Character)\\nRETURN c\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many patients have been prescribed 'Insulin' and who are these patients?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_PRESCRIPTION]->(:Prescription)-[:OF_MEDICATION]->(m:Medication{name: 'Insulin'})\\nRETURN count(DISTINCT p) as numPatients, COLLECT(DISTINCT p.name) as patients"}]} {"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 5 types of machines in zone 3 by rack."}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(rack:Rack {zone: 3})-[:HOLDS]->(machine:Machine)-[:TYPE]->(type:Type)\\nRETURN rack.name AS rackName, machine.name AS machineName, type.name AS typeName\\nORDER BY rack.name, machine.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the description and the label 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.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Topic for which cluster is 10!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'10'})-[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": "List the entities that have been struck off on '15-FEB-2013'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date = '15-FEB-2013'\\nRETURN e.name AS entity_name, e.struck_off_date AS struck_off_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of employees we have."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nRETURN COUNT(e)"}]} {"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": "Find nodes that are at the end of a path starting at Journal where name is J.Statist.Phys and traversing through DOI with name 10.2140/gt.2000.4.407!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J.Statist.Phys'})-[*]->(d:DOI{name:'10.2140/gt.2000.4.407'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Article where comments is 21 pages, AMS-LaTeX and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.comments = '21 pages, AMS-LaTeX'\\nRETURN properties(b) AS Article_props, properties(n) 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": "List the URLs of the users who are chatters of the stream \"dota2mc_ru\"."}, {"role": "assistant", "content": "MATCH (s:Stream {name: \"dota2mc_ru\"})<-[:CHATTER]-(chatter:Stream)\\nRETURN chatter.url"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Topic where label is Dynamical Systems_10 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Dynamical Systems_10'})-[r]->(n)\\nRETURN properties(n), 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": "Which streams have users as VIPs and moderators and list those users' names?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(vipUser:User), (s)-[:MODERATOR]->(modUser:User)\\nRETURN s.id AS StreamID, collect(DISTINCT vipUser.name) AS VIPUserNames, collect(DISTINCT modUser.name) AS ModeratorUserNames"}]} {"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 'Burlingame' with reviews mentioning 'awesome'."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Burlingame'})-[:REVIEWS]->(r:Review)\\nWHERE r.text CONTAINS 'awesome'\\nRETURN b\\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 5 most recent tweets based on the creation date?"}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t\\nORDER BY t.created_at 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 movies have been both written and directed by the same person and what are their titles?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nMATCH (p)-[:WROTE]->(m)\\nRETURN m.title AS movie_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": "Find the streams that have a chatter who also chatters on a stream with the game \"Rust\" and has more than 5,000 followers and have the language \"ru\"."}, {"role": "assistant", "content": "MATCH (stream)-[:CHATTER]->(chatter:User)-[:CHATTER]->(target_stream:Stream)\\nMATCH (target_stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE target_stream.followers > 5000\\nMATCH (stream)-[:HAS_LANGUAGE]->(l:Language {name: 'ru'})\\nRETURN DISTINCT stream.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": "How many movies have a budget greater than 100 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nRETURN count(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 supplier has the least diverse product catalog (supplies products in the fewest categories)?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, size(collect(DISTINCT c.categoryID)) AS categoryCount\\nORDER BY categoryCount ASC\\nLIMIT 1\\nRETURN s.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Benefit\": {\n \"properties\": {\n \"provider\": \"STRING\",\n \"type\": \"STRING\"\n }\n },\n \"Payroll\": {\n \"properties\": {\n \"bonus\": \"INTEGER\",\n \"baseSalary\": \"INTEGER\"\n }\n },\n \"PerformanceReview\": {\n \"properties\": {\n \"rating\": \"STRING\",\n \"date\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"position\": \"STRING\",\n \"name\": \"STRING\",\n \"hireDate\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_BENEFIT\",\n \"to\": \"Benefit\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PAYROLL\",\n \"to\": \"Payroll\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_REVIEW\",\n \"to\": \"PerformanceReview\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_REVIEW\",\n \"to\": \"PerformanceReview\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PAYROLL\",\n \"to\": \"Payroll\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_BENEFIT\",\n \"to\": \"Benefit\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_BENEFIT\": {\n \"startDate\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which employees have a 'Health Insurance' benefit?"}, {"role": "assistant", "content": "MATCH (e:Employee)-[:HAS_BENEFIT]->(b:Benefit)\\nWHERE b.type = 'Health Insurance'\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the entry name of the catalog with the highest price (in USD)."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN cc.catalog_entry_name\\nORDER BY cc.price_in_dollars DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many different status codes of things are there?"}, {"role": "assistant", "content": "MATCH (n:Timed_Status_of_Thing)\\nRETURN COUNT(DISTINCT n.Status_of_Thing_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 users have asked questions that have both upVotes and downVotes?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.upVotes > 0 AND q.downVotes > 0\\nRETURN u.display_name, u.id, u.link"}]} {"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 exactly 3 roles in the ACTED_IN relationship."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(p:Person)\\nWHERE size(r.roles) = 3\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where label is Dynamical Systems_10!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Dynamical Systems_10'\\nRETURN n"}]} {"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 Math. Ann, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{name:'Math. Ann'})-[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 \"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 lowest book1BetweennessCentrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality IS NOT NULL\\nRETURN c.name AS character, c.book1BetweennessCentrality AS centrality\\nORDER BY centrality\\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 countries by the number of filings where they are the originator."}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)-[:ORIGINATOR]->(f:Filing)\\nRETURN c.name AS Country, count(f) AS NumberOfFilings\\nORDER BY NumberOfFilings 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": "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.location AS Location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the name and assets of each company in ascending order of company name."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.name, c.Assets_billion\\nORDER BY c.name ASC"}]} {"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 released year of 2008?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released = 2008\\nRETURN m.title, m.released\\nORDER BY m.title\\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 \"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 = 18, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta='18'\\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 \"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 for movies in the \"Science Fiction\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Science Fiction'})\\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": "Show the top 3 movies that were produced in multiple countries."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH m, count(c) AS countries_count\\nWHERE countries_count > 1\\nRETURN m\\nORDER BY m.popularity 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 products that have a reorder level greater than the average reorder level of products in the same category."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c, avg(p.reorderLevel) AS avgReorderLevel\\nMATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.reorderLevel > avgReorderLevel\\nRETURN p.productName"}]} {"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 logarithms!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name: 'logarithms'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.description STARTS WITH 't'\\nRETURN m"}]} {"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 is Published by Geometry and Topology at\n http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html!"}, {"role": "assistant", "content": "MATCH (n:Article {comments:'Published by Geometry and Topology at http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find all the distinct district names ordered by city area in descending."}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Area 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": "What are the first 3 locations where the most users are based?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.location IS NOT NULL\\nRETURN u.location AS Location, count(u) AS UserCount\\nORDER BY UserCount 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 have a language set to 'en'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the station name with at least two trains."}, {"role": "assistant", "content": "MATCH (s:Station)-[:SERVES]->(t:Train)\\nWITH s.Name as name, count(t) AS count\\nWHERE count >= 2\\nRETURN 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 563c3ceee67bbf5fc29c764b86a8c8ca and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '563c3ceee67bbf5fc29c764b86a8c8ca'\\nRETURN properties(b) AS DOI_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\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 Report and DOI?"}, {"role": "assistant", "content": "MATCH (a:Report)-[r]->(n), (d:DOI)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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": "Which 3 users have VIP status on the most streams?"}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWITH u, count(s) AS vipCount\\nORDER BY vipCount DESC\\nLIMIT 3\\nRETURN u.name, vipCount"}]} {"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": "Are there any nodes that are connected with Keyword where key_id is c807a6943bac079cc85fda45518ea7f4 and share a common property with Journal, for which journal_id equals fce69ad0112a3426c57a0582a2b8620f?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c807a6943bac079cc85fda45518ea7f4'})-[r]->(n), (d:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})\\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": "Find the top 5 users by number of statuses posted."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.screen_name, u.statuses\\nORDER BY u.statuses DESC\\nLIMIT 5"}]} {"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 are at the end of a path starting from Article, where title is Log mirror symmetry and local mirror symmetry, through Journal via PUBLISHED_IN with year 2001?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Log mirror symmetry and local mirror symmetry'})-[:PUBLISHED_IN {year: '2001'}]->(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": "What are the top 3 most viewed games by streams that have a team?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nMATCH (s)-[:HAS_TEAM]->(:Team)\\nRETURN g.name AS game, SUM(s.total_view_count) AS total_views\\nORDER BY total_views DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all people names in the order of their date of birth from old to young."}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Name\\nORDER BY p.Date_of_Birth"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 longest taglines?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline IS NOT NULL\\nRETURN m.title, m.tagline\\nORDER BY size(m.tagline) 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 tags associated with questions asked by users with a reputation greater than 5000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE u.reputation > 5000\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\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 article_id is 1009!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.article_id='1009'\\nRETURN m.affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both DOI and DOI?"}, {"role": "assistant", "content": "MATCH (a:DOI)-[r]->(n), (d:DOI)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the campus fee for San Francisco State University in 1996?"}, {"role": "assistant", "content": "MATCH (n:Campus {Campus: \"San Francisco State University\"})<-[:TEACHES]-(fee:CsuFee {Year: 1996}) return fee.CampusFee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to DOI where name is 10.1007/PL00005532 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.name = '10.1007/PL00005532'\\nRETURN properties(b) AS DOI_props, 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": "List the first 5 questions that have exactly 2 upVotes."}, {"role": "assistant", "content": "MATCH (q:Question {upVotes: 2})\\nRETURN q\\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 characters who have a book45PageRank less than 0.7 and limit the results to three."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank < 0.7\\nRETURN c\\nLIMIT 3"}]} {"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": "Are there any nodes that are connected with Report where report_no is none provided and share a common property with DOI, for which name equals 10.1016/S0040-9383(00)00015-X?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'none provided'})-[r]->(n), (d:DOI{name:'10.1016/S0040-9383(00)00015-X'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the titles of books in descending order of publication price."}, {"role": "assistant", "content": "MATCH (book:Book), (publication:Publication) \\nWHERE publication.Book_ID = book.Book_ID\\nRETURN book.Title as Title\\nORDER BY publication.Price DESC"}]} {"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": "Which nodes are at the end of a path starting from Article, where title is Notes for a Quantum Index Theorem, through Journal via PUBLISHED_IN with pages 45-96?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Notes for a Quantum Index Theorem'})-[:PUBLISHED_IN {pages: '45-96'}]->(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 movies with the most revenue that have a runtime under 90 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 90 AND exists((m)<-[:RATED]-())\\nRETURN m.title AS movie, m.revenue AS revenue\\nORDER BY revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "What are the start and end dates for incidents with incident type code \"NOISE\"?"}, {"role": "assistant", "content": "MATCH (b:BehaviorIncident)\\nWHERE b.incident_type_code = \"NOISE\"\\nRETURN b.date_incident_start, b.date_incident_end"}]} {"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 PAM-780!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'PAM-780'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the code of each location and the number of documents in that location?"}, {"role": "assistant", "content": "MATCH (n:DocumentLocation)\\nRETURN n.Location_Code, 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 \"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 Generating Functional in CFT on Riemann Surfaces II: Homological Aspects and PUBLISHED_IN has meta on 227!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '227'}]->(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 \"ref_template_types\": {\n \"properties\": {\n \"template_type_code ( PPT )\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code ( PPT )\": \"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 document id, template id, and description for the document with the name Robbin CV."}, {"role": "assistant", "content": "MATCH (documents:Documents)\\nWHERE documents.Document_Name = \"Robbin CV\"\\nRETURN documents.Document_ID,documents.Template_ID,documents.Document_Description"}]} {"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 exponentially growing, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{name:'exponentially growing'})-[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 \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.max_page_size = \"A4\" OR p.pages_per_minute_color < 5\\nRETURN p.Product"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where label contains Dynam!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label CONTAINS 'Dynam'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the number of technicians?"}, {"role": "assistant", "content": "MATCH (n:Technician)\\nRETURN COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "What is the gender of the teacher with last name \"Medhurst\"?"}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.last_name = \"Medhurst\"\\nRETURN t.gender"}]} {"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 LaTeX2e, 36 pages ; Some misprints are corrected!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'LaTeX2e, 36 pages ; Some misprints are corrected'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"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 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, passing through Author via WRITTEN_BY?"}, {"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. '})-[:WRITTEN_BY]->(c:Author)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Journal where journal_id is f6582df4742923aacfc6e67638bd4bf6 and Keyword, for which name equals gain?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[*]->(d:Keyword{name:'gain'})\\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 the nodes connected to UpdateDate where update_date is 2010-06-18 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2010-06-18'})-[r]->(n)\\nRETURN properties(n), 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 are the movies with a runtime exactly equal to the runtime of 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'}), (other:Movie)\\nWHERE other.runtime = m.runtime AND other <> m\\nRETURN other.title, other.runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Article where title or abstract contains Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title CONTAINS 'Solutions to congruences using sets with the property of Baire'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Article)\\nWHERE m.abstract CONTAINS 'Solutions to congruences using sets with the property of Baire'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate?"}, {"role": "assistant", "content": "MATCH (c:Candidate)\\nRETURN c.Support_rate, c.Consider_rate, c.Oppose_rate\\nORDER BY c.Unsure_rate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different location codes for documents?"}, {"role": "assistant", "content": "MATCH (l:RefLocation)\\nRETURN DISTINCT l.Location_Code"}]} {"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 given the highest average ratings to movies."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, AVG(r.rating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 5\\nRETURN u.userId, u.name, avgRating"}]} {"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 Nice - Sophia Antipolis?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'})-[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 runtime of movies in the \"Animation\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: \"Animation\"})\\nWITH avg(m.runtime) AS averageRuntime\\nRETURN averageRuntime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "How many locations are listed in the database?"}, {"role": "assistant", "content": "MATCH (r:RefLocation)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the grade number and classroom number of each class in the list?"}, {"role": "assistant", "content": "MATCH (l:List)\\nRETURN DISTINCT l.Classroom, l.Grade"}]} {"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 where the main actor was born in France?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.bornIn = 'France'\\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": "What is the average total view count of streams that have at least one 'VIP' user?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(:User)\\nWITH avg(s.total_view_count) AS average_view_count\\nRETURN average_view_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": "Find the characters with the top 3 highest 'book45PageRank' values who interacted with \"Cersei-Lannister\" in book 45."}, {"role": "assistant", "content": "MATCH (c:Character {name: \"Cersei-Lannister\"})-[:INTERACTS45 {book: 45}]->(other:Character)\\nWITH other\\nORDER BY other.book45PageRank DESC\\nLIMIT 3\\nRETURN other.name AS character_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the first names of students studying in room 108."}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Classroom = 108\\nRETURN l.FirstName"}]} {"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 country has produced the most movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nUNWIND m.countries AS country\\nWITH country, COUNT(DISTINCT m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN country, movieCount\\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 teams that have been involved with streams that play 'Just Chatting' and have total views over 1 million."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Just Chatting'}), (s)-[:HAS_TEAM]->(t:Team)\\nWHERE s.total_view_count > 1000000\\nRETURN DISTINCT t.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 first 3 products with a reorder level above 20?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel > 20\\nRETURN p.productName, p.reorderLevel\\nORDER BY p.productName\\nLIMIT 3"}]} {"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 Randall!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Randall'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.affiliation CONTAINS 'Randall'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the label of the Topic and the cluster for Topic!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Topic)\\nRETURN n.label, m.cluster\\nLIMIT 8"}]} {"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 f2f5ea4787de1e16c51c306e07bb740c, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})-[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": "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"}]} {"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 officers are shareholders of entities incorporated on '10-JAN-2006'?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[r:officer_of {link: \"shareholder of\"}]->(e:Entity {incorporation_date: \"10-JAN-2006\"})\\nRETURN o.name AS officer_name, e.name AS entity_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 the most number of associated actors?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH m, COUNT(a) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 3\\nRETURN m.title AS movieTitle, actorCount"}]} {"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 {bornIn: 'USA'})-[:DIRECTED]->(m:Movie)\\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 customer who placed the order with the highest total quantity of products."}, {"role": "assistant", "content": "MATCH (o:Order)-[oi:ORDERS]->(p:Product)\\nWITH o, sum(oi.quantity) AS totalQuantityPerOrder\\nWITH max(totalQuantityPerOrder) AS maxQuantity\\nMATCH (o:Order)-[oi:ORDERS]->(p:Product)\\nWITH o, sum(oi.quantity) AS totalQuantityPerOrder, maxQuantity\\nMATCH (c:Customer)-[:PURCHASED]->(o)\\nWHERE totalQuantityPerOrder = maxQuantity\\nRETURN c.customerID, c.companyName"}]} {"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": "Are there any nodes that are connected with Author where affiliation is unspecified and share a common property with Journal, for which journal_id equals ebe5bed51965553359ee9f13db0293e1?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:Journal{journal_id:'ebe5bed51965553359ee9f13db0293e1'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of members living in each address."}, {"role": "assistant", "content": "MATCH (m:Member)\\nRETURN count(m), m.Address"}]} {"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 ebe5bed51965553359ee9f13db0293e1, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'ebe5bed51965553359ee9f13db0293e1'})-[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 \"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": "Who are the top 5 actors by the number of movies acted in the 'Adventure' genre?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Adventure'})\\nWITH a, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 5\\nRETURN a.name AS actor, movieCount"}]} {"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 shipped products to 'France'?"}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France'\\nRETURN p.productName, COUNT(*) AS shipmentCount\\nORDER BY shipmentCount DESC\\nLIMIT 5"}]} {"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 1063 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 > 1063\\nRETURN n.comments AS comments, n.article_id AS article_id\\nORDER BY article_id DESC"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the course names, ordered by credits?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nRETURN c.CName\\nORDER BY c.Credits"}]} {"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 have the lowest average IMDb rating?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.imdbRating IS NOT NULL\\nWITH g.name AS genre, avg(m.imdbRating) AS avgRating\\nRETURN genre, avgRating\\nORDER BY avgRating 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 3 production companies have the most films with an original language of 'en'?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language {id: 'en'})\\nRETURN p.name AS ProductionCompany, COUNT(m) AS FilmCount\\nORDER BY FilmCount DESC\\nLIMIT 3"}]} {"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": "Find the shortest path between Article where comments is LaTeX2e, 36 pages ; Some misprints are corrected and Topic, with label equal Mathematical Analysis_8, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[*]-(e:Topic{label:'Mathematical Analysis_8'}))\\nRETURN nodes(p)"}]} {"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 description of the department whose name has the substring the computer?"}, {"role": "assistant", "content": "MATCH (departments:Departments)\\nWHERE departments.department_name =~'.*[C|c]omputer.*'\\nRETURN departments.department_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": "List all tweets by 'neo4j' that have more than 200 favorites and show the first 5."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nWHERE t.favorites > 200\\nRETURN t\\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 c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id:'c807a6943bac079cc85fda45518ea7f4'})\\nRETURN n"}]} {"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 Summation and transformation formulas for elliptic hypergeometric series!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"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 Geometrical Tools for Quantum Euclidean Spaces and PUBLISHED_IN has meta on 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '217'}]->(m)\\nWHERE n.title='Geometrical Tools for Quantum Euclidean Spaces'\\nRETURN m.journal_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": "How many different ports are used by applications named 'webserver'?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})-[:LISTENS]->(port:Port)\\nRETURN COUNT(DISTINCT port.port) AS numberOfPorts"}]} {"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 Open sets satisfying systems of congruences and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.title = 'Open sets satisfying systems of congruences'\\nRETURN properties(b) AS Article_props, 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": "Show the names of 3 businesses with reviews from 'Bob' with a star rating below 4.5."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Bob'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars < 4.5\\nRETURN b.name\\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 the questions that have a createdAt date in 2019 and have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt >= '2019-01-01T00:00:00Z' AND q.createdAt <= '2019-12-31T23:59:59Z' AND q.answered = true\\nRETURN q"}]} {"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": "Is there a path connecting Categories where category_id is 33657234da1dc070ea09e7c31bb86abb and Author, for which author_id is d83c43e5b1cf398c4e549843f497694b?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'}), (b:Author{author_id:'d83c43e5b1cf398c4e549843f497694b'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 28 pages, LaTex and PUBLISHED_IN has year on 2001!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2001'}]->(m)\\nWHERE n.comments='28 pages, LaTex'\\nRETURN m.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 questions from users who have a link in their profile."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.link IS NOT NULL\\nRETURN q.title, q.createdAt, u.display_name\\nORDER BY q.createdAt\\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 streams with more than 10 VIP relationships."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE count{(s)-[:VIP]->()} > 10\\nRETURN s"}]} {"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 other than 1.77?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.area <> 1.77\\nRETURN DISTINCT u1.label"}]} {"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 names and descriptions for all the sections?"}, {"role": "assistant", "content": "MATCH (sections:Sections)\\nRETURN sections.section_name,sections.section_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the distinct move in dates of the residents?"}, {"role": "assistant", "content": "MATCH (r:Resident)\\nRETURN DISTINCT r.date_moved_in"}]} {"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 highest book1BetweennessCentrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where article_id is 1069 and Topic, with cluster equal 2, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1069'})-[*]-(e:Topic{cluster:'2'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Return the most frequent result across all musicals."}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWITH m.Result AS Result, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Result"}]} {"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 \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average first_name for Author that are linked to Article via WRITTEN_BY and have abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.first_name) AS avg_first_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 largest budgets released before 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 2000\\nRETURN m.title AS title, m.budget AS 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": "Show the businesses that have the highest number of reviews."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1\\nRETURN b.name AS businessName, reviewCount"}]} {"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 19 pages, AMSLatex, references added!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.comments='19 pages, AMSLatex, references added'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.article_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the id and name of the browser that is compatible with the most web accelerators?"}, {"role": "assistant", "content": "MATCH (b:Browser)-[:USES]->(w:WebClientAccelerator)\\nWITH b.id as id, b.name as name, count(*) as cnt\\nORDER BY cnt DESC\\nLIMIT 1\\nRETURN id, 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 number of words in the review summaries of movies with a rating above 95?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 95\\nWITH size(split(r.summary, \" \")) AS words\\nRETURN avg(words) AS average_word_count"}]} {"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 9!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE NOT n.report_id STARTS WITH '9'\\nRETURN DISTINCT n.report_id AS report_id, 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": "List the top 5 movies that have been rated after 2015."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE r.timestamp > 1451606400\\nRETURN m.title, m.year, r.rating\\nORDER BY r.timestamp DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the specifications for Categories combined with the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION ALL\\nMATCH (m:Topic)\\nRETURN m.description AS Records"}]} {"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": "Return the article_id for Article combined with the label for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.article_id AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.label AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to DOI where doi_id is 673313cb2dcde5d215a7e7ec2788f676, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'673313cb2dcde5d215a7e7ec2788f676'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 11!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 2 OR n.cluster < 11\\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": "How many streams are using the language \"en\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nRETURN count(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": "Who are the top 5 characters with the lowest book1PageRank but more than zero degree?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 0\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank\\nLIMIT 5"}]} {"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 Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Subexponential groups in 4-manifold topology'})-[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": "Which streams are moderated by users who are also VIPs in the same stream?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(u:User)-[:VIP]->(s)\\nRETURN s.name AS stream_name, u.name AS moderator_vip_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 IP addresses of interfaces that are connected to zone 3's network?"}, {"role": "assistant", "content": "MATCH (zone:Zone {zone: 3})-[:ROUTES]->(interface:Interface)\\nRETURN interface.ip"}]} {"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 population dynamics and are HAS_TOPIC linked to a Topic?"}, {"role": "assistant", "content": "MATCH (a:Keyword {name:'population dynamics'})-[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 \"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 have reviews with stars rating less than 4.0?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars < 4.0\\nRETURN COUNT(DISTINCT b) AS numberOfBusinesses"}]} {"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 In this article we study the interface generated by the collision between two\ncristals growing layer by layer on a one-dimensional substrate through random\ndecomposition of particles. We relate this interface with the notion of\nbeta-path in an equivalent directed polymer model and, by using asymptotics\nresults from Baik and Rains (2000) and some hydrodynamic tools introduced by\nCator and Groeenenboon (2005), we derive a law of large numbers for such a path\nand obtain some bounds for its fluctuations.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.abstract=' In this article we study the interface generated by the collision between two cristals growing layer by layer on a one-dimensional substrate through random decomposition of particles. We relate this interface with the notion of beta-path in an equivalent directed polymer model and, by using asymptotics results from Baik and Rains (2000) and some hydrodynamic tools introduced by Cator and Groeenenboon (2005), we derive a law of large numbers for such a path and obtain some bounds for its fluctuations. '\\nRETURN m.key_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 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\\nRETURN m.title, m.year, m.imdbVotes\\nORDER BY m.imdbVotes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where label is Mathematical Analysis_8 and Report, for which report_no equals SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint\n No. 73?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{label:'Mathematical Analysis_8'})-[*]->(d:Report{report_no:'SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint No. 73'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where key_id is 1af2a68bafbcdcb0f3329c5793163154 and Author, for which first_name is Lionel J.?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'}), (b:Author{first_name:'Lionel J.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 Open sets satisfying systems of congruences, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Open sets satisfying systems of congruences'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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 3 most recent tweets posted by any user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nRETURN t.text AS tweet_text, t.created_at AS created_at\\nORDER BY t.created_at DESC\\nLIMIT 3"}]} {"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 10 pages, 4 figures!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '10 pages, 4 figures'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\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": "What is the name of the entity that benefited from the filing with the latest end date?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f\\nORDER BY f.end DESC\\nLIMIT 1\\nMATCH (f)-[:BENEFITS]->(e:Entity)\\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": "Which users have not written any reviews?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE NOT exists{ (u)-[:WROTE]->(:Review) }\\nRETURN u"}]} {"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 2.6 and a size less than 3?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area <> 2.6 AND u.size < 3\\nRETURN count(u)"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Which courses are taught on days MTW?"}, {"role": "assistant", "content": "MATCH (c:Course {Days:\"MTW\"})\\nRETURN c.CName"}]} {"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 with addresses in 'Burlingame' and have been reviewed?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.city = 'Burlingame'\\nRETURN DISTINCT 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": "What is the name of the Application that runs on the Machine located in the Rack named 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (r:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(m:Machine)-[:RUNS]->(a:Application)\\nRETURN 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 \"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 title is Summation and transformation formulas for elliptic hypergeometric series, through Journal via PUBLISHED_IN with year 2002?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Summation and transformation formulas for elliptic hypergeometric series'})-[:PUBLISHED_IN {year: '2002'}]->(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": "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, b.businessId"}]} {"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 doi_id is f2f5ea4787de1e16c51c306e07bb740c or name is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = 'f2f5ea4787de1e16c51c306e07bb740c' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS 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 doi_id is abce5ed79c520bdb8fd79a61a852648d or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = 'abce5ed79c520bdb8fd79a61a852648d' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_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": "Find all movies that have a title containing a number."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title =~ '.*[0-9].*'\\nRETURN m"}]} {"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 the article with ID 667379003?"}, {"role": "assistant", "content": "MATCH (a:Article {articleId: 667379003})-[:VARIANT_OF]->(p:Product)\\nRETURN p.productTypeName"}]} {"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 source ID for the \"same_name_as\" relationship?"}, {"role": "assistant", "content": "MATCH ()- [r:same_name_as]->()\\nRETURN DISTINCT r.sourceID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the top 3 greatest support rates."}, {"role": "assistant", "content": "MATCH (c:Candidate)\\nRETURN c.Support_rate\\nORDER BY c.Support_rate 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 11 or cluster is less than 5!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 11 OR n.cluster < 5\\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": "Which 3 products have the most variations in unit price among orders?"}, {"role": "assistant", "content": "MATCH (p:Product)-[o:ORDERS]->(:Order)\\nWITH p.productName AS productName, COUNT(DISTINCT o.unitPrice) AS priceVariations\\nORDER BY priceVariations DESC\\nLIMIT 3\\nRETURN productName, priceVariations"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_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 Author where author_id is f6bcab8e721fbec0f293fee49d73c9c4 and UpdateDate, for which update_date equals 2014-11-11?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*]->(d:UpdateDate{update_date:'2014-11-11'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Report where report_id or report_no contains 5049b80a2935f95cc95cf14dbfb8c610!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS '5049b80a2935f95cc95cf14dbfb8c610'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_no CONTAINS '5049b80a2935f95cc95cf14dbfb8c610'\\nRETURN m AS node"}]} {"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 centrality above 0.5 and a book1PageRank below 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality > 0.5 AND c.book1PageRank < 1\\nRETURN c.name AS character"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the different ages of editors? Show each age along with the number of editors of that age."}, {"role": "assistant", "content": "MATCH (e:Editor)\\nRETURN e.Age, COUNT(e)\\nORDER BY e.Age"}]} {"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 1009?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1009'})-[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": "List the businesses that have received reviews from users with names containing the letter \"e\"."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE u.name CONTAINS 'e'\\nRETURN DISTINCT b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many faculty members did the university that conferred the most degrees in 2002 have?"}, {"role": "assistant", "content": "MATCH (c:Campus)<-[:TEACHES]-(f:Faculty)\\nWHERE f.Year = 2002\\nRETURN f.Faculty\\nORDER BY f.Faculty 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": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 1139 and PUBLISHED_IN has meta on 218!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '218'}]->(m)\\nWHERE n.article_id='1139'\\nRETURN m.journal_id"}]} {"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": "Find title 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.title AS title, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Which student's age is older than 18 and is majoring in 600? List each student's first and last name."}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Age > 18 AND s.Major = 600\\nRETURN s.Fname, s.LName"}]} {"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 follow Keanu Reeves and have also acted in a movie with him?"}, {"role": "assistant", "content": "MATCH (follower:Person)-[:FOLLOWS]->(keanu:Person {name: \"Keanu Reeves\"})\\nWHERE exists { (follower)-[:ACTED_IN]->(m:Movie)<-[:ACTED_IN]-(keanu) }\\nRETURN follower"}]} {"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 16 pages To be published in Journal of Geometry and Physics, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'16 pages To be published in Journal of Geometry and Physics'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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": "Are there any nodes that are connected with 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 share a common property with Topic, for which label equals Riemannian geometry_4?"}, {"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), (d:Topic{label:'Riemannian geometry_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 3 directors have the most movies with a runtime over 180 minutes?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.runtime > 180\\nWITH d, COUNT(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN d.name AS directorName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_no is JNMP 4/2002 (Letter) and Topic, for which cluster is 7?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'JNMP 4/2002 (Letter)'}), (b:Topic{cluster:'7'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "List all cities of addresses in alphabetical order."}, {"role": "assistant", "content": "MATCH (a:Address)\\nRETURN a.city\\nORDER BY a.city"}]} {"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": "Name the top 5 characters with the highest degree in the entire dataset."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree IS NOT NULL\\nRETURN c.name, c.degree\\nORDER BY c.degree 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": "What is the average amount of filings originated by entities located in 'CHN'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE e.country = 'CHN'\\nWITH avg(f.amount) AS average_amount\\nRETURN average_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": "Identify the first 3 teams that are linked to streams with over 10,000 followers."}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nWHERE s.followers > 10000\\nRETURN t.name AS team_name\\nORDER BY t.createdAt\\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 users who have reviewed 'Ducky's Car Wash'."}, {"role": "assistant", "content": "MATCH (b:Business {name: \"Ducky's Car Wash\"})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN 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": "Identify the characters with 'fastrf_embedding' values that start with a negative number. List the first 5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[0] < 0\\nRETURN c.name, c.fastrf_embedding\\nLIMIT 5"}]} {"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 cs.!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications STARTS WITH 'cs.'\\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 directed movies in more than three different countries?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, count(DISTINCT m.countries) AS numCountries\\nWHERE numCountries > 3\\nRETURN d.name, numCountries\\nORDER BY numCountries DESC\\nLIMIT 5"}]} {"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 none provided or report_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no = 'none provided' OR n.report_id IS NOT NULL\\nRETURN DISTINCT n.report_id AS report_id"}]} {"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": "Find nodes that are at the end of a path starting at Journal where name is Commun.Math.Phys and traversing through Keyword with key_id d2d74b47b149d8090871a2f33e80809b!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Commun.Math.Phys'})-[*]->(d:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[*]->(n)\\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": "Is there a path connecting Report where report_id is 5049b80a2935f95cc95cf14dbfb8c610 and Article, for which article_id is 1069?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'}), (b:Article{article_id:'1069'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 does 'neo4j' amplify the most and list the top 5?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:AMPLIFIES]->(user:User)\\nRETURN user.screen_name, COUNT(*) AS amplification_count\\nORDER BY amplification_count 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 has the review with the lowest star rating?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWITH b, r\\nORDER BY r.stars ASC\\nLIMIT 1\\nRETURN b.name AS businessName, r.stars AS lowestRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between UpdateDate where update_date is 2017-07-11 and Author, for which first_name equals Marco?"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2017-07-11'})-[*]->(d:Author{first_name:'Marco'})\\nRETURN count(p)"}]} {"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 first_name is not J. Daniel!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name <> 'J. Daniel'\\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 first 5 movies that have been directed by women."}, {"role": "assistant", "content": "MATCH (director:Person)-[:DIRECTED]->(movie:Movie)\\nWHERE director.name =~ \"(?i).*\\\\b(Ms\\\\.|Miss|Mrs\\\\.|Madam|Madame|Mademoiselle|Frau|Fräulein|Señora|Señorita|Doña|Donna)\\\\b.*\"\\nRETURN movie.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": "List the top 3 states with the highest number of businesses."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWITH b.state AS state, count(b) AS businessCount\\nORDER BY businessCount DESC\\nRETURN state, businessCount\\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 first 3 customers who have purchased orders shipped to France?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE o.shipCountry = 'France'\\nRETURN c.customerID, c.companyName, c.contactName\\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": "How many users have written reviews for businesses located at '301 E Main St'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '301 E Main St'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN COUNT(DISTINCT u) AS numberOfUsers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the abstract of the Article and the title for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Article)\\nRETURN n.abstract, m.title\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Article where title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[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": "List the first 3 tweets that 'Neo4j' retweets on '2021-03-16'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)\\nWHERE date(retweet.created_at) = date('2021-03-16')\\nRETURN original.text, original.created_at\\nORDER BY retweet.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": "Which movies are musicals?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Music'\\nRETURN m.title"}]} {"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 7 and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.cluster = '7'\\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": "Which movie had the largest number of actors participating?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nRETURN m.title AS Movie, count(a) AS NumberOfActors\\nORDER BY NumberOfActors DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of different hometowns of these people."}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN count(DISTINCT p.Hometown)"}]} {"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 have been answered?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN count(q) AS AnsweredQuestionsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal for which journal_id is 6dc95119d8a737d9ffc7fe367159849b, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.journal_id = '6dc95119d8a737d9ffc7fe367159849b'\\nRETURN properties(n) AS props, r"}]} {"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": "Search for the title values from 20 Article that are linked to DOI via HAS_DOI and return title along with the respective DOI counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the team and starting year for each technician?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Team, t.Starting_Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"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 last_name is Burnol and traversing through DOI with name 10.1007/s00365-002-0501-6!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Burnol'})-[*]->(d:DOI{name:'10.1007/s00365-002-0501-6'})-[*]->(n)\\nRETURN n"}]} {"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 layer-by-layer growth!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name CONTAINS 'layer-by-layer growth'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Keyword)\\nWHERE m.key_id CONTAINS 'layer-by-layer growth'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CarePlan\": {\n \"properties\": {\n \"frequency\": \"STRING\",\n \"type\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"room\": \"STRING\"\n }\n },\n \"MedicalRecord\": {\n \"properties\": {\n \"medication\": \"STRING\",\n \"diagnosis\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_CARE_PLAN\",\n \"to\": \"CarePlan\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_CARE_PLAN\",\n \"to\": \"CarePlan\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_MEDICAL_RECORD\",\n \"to\": \"MedicalRecord\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_MEDICAL_RECORD\",\n \"to\": \"MedicalRecord\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_CARE_PLAN\": {\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the average age of the residents?"}, {"role": "assistant", "content": "MATCH (r:Resident)\\nRETURN avg(r.age) as average_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 3 users have VIP status on the most streams?"}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWITH u, COUNT(s) AS vip_stream_count\\nORDER BY vip_stream_count DESC\\nLIMIT 3\\nRETURN u.name AS userName, vip_stream_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 movies with the most crew members."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:CREW_FOR]-(crew:Person)\\nWITH m, count(crew) AS crewCount\\nORDER BY crewCount DESC\\nLIMIT 3\\nRETURN m.title AS movieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Adult\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 some movie examples in this dataset with language information?\""}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN m.title, l.name\\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 3 versions of software does the OS named 'RHEL' have instances of?"}, {"role": "assistant", "content": "MATCH (os:OS {name: 'RHEL'})-[:INSTANCE]->(version:Version)\\nRETURN version.name\\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 is the average number of entities per service provider?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWITH e.service_provider AS service_provider, count(*) AS entity_count\\nWITH avg(entity_count) AS average_entities\\nRETURN average_entities"}]} {"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 top 3 persons who 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 \"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 the USA and have acted in a comedy genre?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE a.bornIn = \"USA\" AND g.name = \"Comedy\"\\nRETURN m.title AS MovieTitle, a.name AS ActorName"}]} {"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 did jeremy allen white played\""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Jeremy Allen White\"})-[:ACTED_IN]->(m:Movie)\\nRETURN COUNT(m) AS movies_played"}]} {"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": "What are the properties of Journal that is PUBLISHED_IN, with year equal to 2001, connected to Article that has comments equal to 31 pages, LaTex?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2001'}]->(m:Journal)\\nWHERE n.comments = '31 pages, LaTex'\\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": "Who are the first three people who have directed and reviewed the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:REVIEWED]-(p)\\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 first 5 movies with the most distinct genres associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH m, count(DISTINCT g) AS genreCount\\nORDER BY genreCount DESC\\nLIMIT 5\\nRETURN m.title AS movieTitle, genreCount"}]} {"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 Classification of Subsystems for Local Nets with Trivial Superselection\n Structure and PUBLISHED_IN has meta on 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '217'}]->(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 \"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 beneficiary countries by the number of filings they received from originator entities located in Singapore?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_iso = \"SGP\"\\nMATCH (f)-[:BENEFITS]->(be:Entity)-[:COUNTRY]->(bc:Country)\\nWITH bc.name AS beneficiary_country, count(f) AS filing_count\\nORDER BY filing_count DESC\\nRETURN beneficiary_country, filing_count\\nLIMIT 5"}]} {"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 2015-06-26, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2015-06-26'})-[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": "Identify the first 5 actors who have acted in movies with a budget less than 50 million dollars."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget < 50000000\\nRETURN a.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many friends does the most popular user have?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:FRIENDS_WITH]->()\\nRETURN u, COUNT(r) AS count_FRIENDS_WITH_"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where key_id is d2d74b47b149d8090871a2f33e80809b and Keyword, for which key_id is 4969a8e0646cdb8842726781e7637625?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'}), (b:Keyword{key_id:'4969a8e0646cdb8842726781e7637625'})\\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 users with the highest average star ratings given."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, avg(r.stars) AS average_rating\\nRETURN u.name, average_rating\\nORDER BY average_rating 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": "Find all 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 \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the last_name for Author combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.last_name AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"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 1af2a68bafbcdcb0f3329c5793163154!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'})-[*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": "Which nodes are connected to Author where author_id is 13c7b3c4f69c510e94c671c881522bac, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'13c7b3c4f69c510e94c671c881522bac'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 3 link values for relationships connected to Addresses in \"Samoa\"."}, {"role": "assistant", "content": "MATCH (a:Address {countries: 'Samoa'})-[r]-()\\nWITH DISTINCT r.link AS link\\nRETURN link\\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 registered addresses of entities in Hong Kong?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE e.countries = \"Hong Kong\"\\nRETURN e.name, a.address"}]} {"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 year saw the release of the most movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m.released AS releaseYear, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN releaseYear, movieCount\\nLIMIT 1"}]} {"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 72e4f3fc2930bd3a0a7730a664d069d6!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})\\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 users have written reviews for businesses in the same category as 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (library:Business {name: 'Missoula Public Library'})-[:IN_CATEGORY]->(category:Category)\\nMATCH (business:Business)-[:IN_CATEGORY]->(category)\\nMATCH (business)<-[:REVIEWS]-(review:Review)\\nMATCH (review)<-[:WROTE]-(user:User)\\nRETURN DISTINCT user.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 a creation date before 2015 and have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime('2015-01-01T00:00:00Z') AND s.followers > 10000\\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": "List the first 3 tweets that mention the user with the highest betweenness."}, {"role": "assistant", "content": "MATCH (u:User)-[:MENTIONS]-(t:Tweet)\\nWHERE u.betweenness IS NOT NULL\\nWITH u, t\\nORDER BY u.betweenness DESC\\nLIMIT 1\\nMATCH (t2:Tweet)-[:MENTIONS]->(u) \\nRETURN t2.text\\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 \"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 comments is latex, 38 pages, typos corrected and are PUBLISHED_IN linked to Journal, where meta is 217?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'latex, 38 pages, typos corrected'})-[r:PUBLISHED_IN {meta :'217'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 also chats in a stream that uses the Russian language."}, {"role": "assistant", "content": "MATCH (vip_stream:Stream)-[:VIP]->(vip:User)\\nMATCH (vip)-[:CHATTER]->(ru_stream:Stream)-[:HAS_LANGUAGE]->(lang:Language)\\nWHERE lang.name = 'ru'\\nRETURN DISTINCT vip_stream.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Author for which last_name is Christensen!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Christensen'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which patients have had more than one surgery and what were these surgeries?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[h:HAD_SURGERY]->(s:Surgery)-[:OF_TYPE]->(st:SurgeryType)\\nWITH p.name as patient, s, st.name as surgeryType\\nWITH patient, count(s) as numSurgeries, COLLECT(surgeryType) as surgeryTypes\\nWHERE numSurgeries > 1\\nRETURN patient, surgeryTypes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "List the name of actors in ascending alphabetical order."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Name\\nORDER BY a.Name ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 countries that have produced the most adult films."}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name, count(a) AS adultFilmCount\\nORDER BY adultFilmCount 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 Mathematical Analysis_8!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Topic {label: 'Mathematical Analysis_8'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.report_no"}]} {"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 Filings with the smallest amount."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nRETURN f\\nORDER BY f.amount ASC\\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 last edit timestamp of '1638311020926'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.lastEditTimestamp = '1638311020926'\\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": "What are the first 3 movies that were released in the USA?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE 'USA' IN m.countries\\nRETURN m.title, m.released\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show the team that have at least two technicians."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWITH t.Team as Team, COUNT(t) AS count\\nWHERE count >= 2\\nRETURN Team"}]} {"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 that are concerned in filings with a beneficiary bank country of 'United Kingdom' and an amount greater than 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.amount > 1000000\\nRETURN e\\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 countries associated with the entity 'HOTFOCUS CO., LTD.'."}, {"role": "assistant", "content": "MATCH (e:Entity {name: 'HOTFOCUS CO., LTD.'})\\nRETURN e.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the description of document type 'Paper'?"}, {"role": "assistant", "content": "MATCH (dt:RefDocumentType)\\nWHERE dt.document_type_code = \"Paper\"\\nRETURN dt.document_type_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Author nodes and extract their author_id property!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id"}]} {"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": "Return the specifications for Categories combined with the cluster for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.cluster AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[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 movies that have a 'Fun, but a little far fetched' review summary."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary = 'Fun, but a little far fetched'\\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": "Who are the officers of entities that were incorporated on '06-JAN-2006'?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Entity {incorporation_date: '06-JAN-2006'})\\nRETURN o.name AS OfficerName"}]} {"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 last edit timestamp of '1638311020926'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.lastEditTimestamp = '1638311020926'\\nRETURN e.name, e.node_id, e.countries, e.ibcRUC, e.valid_until, e.country_codes, e.service_provider, e.address, e.inactivation_date, e.struck_off_date, e.status, e.jurisdiction_description, e.incorporation_date, e.original_name, e.jurisdiction, e.internal_id, e.sourceID, e.former_name, e.company_type, e.tax_stat_description, e.note, e.dorm_date, e.type, e.closed_date, e.company_number, e.comments, e.entity_number"}]} {"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 highest number of followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name AS stream_name, s.followers AS follower_count\\nORDER BY follower_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_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 Journal where journal_id is f6582df4742923aacfc6e67638bd4bf6 and traversing through Article with article_id 1052!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[*]->(d:Article{article_id:'1052'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"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 Author, for which author_id equals fd6fcf9374c7e5fd0377800da5e8f846?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:Author{author_id:'fd6fcf9374c7e5fd0377800da5e8f846'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"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 locations and names of all stations with capacity between 5000 and 10000?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nWHERE 5000<=stadium.capacity<=10000\\nRETURN stadium.location,stadium.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": "\"How many directors did Tom Hanks work with?\""}, {"role": "assistant", "content": "MATCH (:Actor {name: \"Tom Hanks\"})-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(directors:Director)\\nRETURN COUNT(DISTINCT directors) AS NumberOfDirectorsWorkedWithTomHanks"}]} {"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 Failure of Brown representability in derived categories!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Failure of Brown representability in derived categories'})-[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": "What are the 3 latest movies rated by user with id 1?"}, {"role": "assistant", "content": "MATCH (u:User {id: 1})-[r:RATED]->(m:Movie)\\nRETURN m.title, r.rating, r.timestamp\\nORDER BY r.timestamp 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": "Identify the top 5 most frequent communities in INTERACTS1 relationships."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS1]->(c2:Character)\\nRETURN c1.community AS Community, count(*) AS Frequency\\nORDER BY Frequency 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 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\\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 all movies produced by 'Pixar Animation Studios'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\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 production companies that have produced movies in more than one language?"}, {"role": "assistant", "content": "MATCH (c:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWITH c, count(distinct l) as numLangs\\nWHERE numLangs > 1\\nRETURN c.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": "List the names of actors born before 1950 who have acted in movies with an IMDb rating above 8.0."}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)\\nWHERE actor.born < date('1950-01-01') AND movie.imdbRating > 8.0\\nRETURN DISTINCT 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": "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 distinctLanguages\\nORDER BY distinctLanguages DESC\\nLIMIT 3\\nRETURN s.id, s.name, distinctLanguages"}]} {"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 received the most reviews in 2016?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date.year = 2016\\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 \"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": "List singer names and number of concerts for each singer."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)\\nWITH count(T2.Singer_ID) AS count, T2.Name AS Name\\nRETURN Name,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": "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)\\nUNWIND m.countries AS country\\nWITH d, COUNT(DISTINCT country) AS countryCount\\nRETURN d.name AS directorName, countryCount\\nORDER BY countryCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show the name for regions not affected."}, {"role": "assistant", "content": "MATCH (r:Region)\\nWHERE NOT ()-[:AFFECTS]->(r)\\nRETURN r.Region_name"}]} {"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 PAM-780 or report_no is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no = 'PAM-780' OR n.report_no IS NOT NULL\\nRETURN DISTINCT n.report_no AS 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 users have reviewed businesses in 'San Mateo'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.city = 'San Mateo'\\nRETURN u.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}"}, {"role": "user", "content": "How many paths are there between Article where title is Chow groups of weighted hypersurfaces and DOI, for which name equals 10.1142/S0219061301000077?"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Chow groups of weighted hypersurfaces'})-[*]->(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": "Name the top 5 movies that have been rated by users named 'Omar Huffman'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Omar Huffman'})-[:RATED]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.imdbRating AS IMDbRating\\nORDER BY m.imdbRating 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 3 questions with the highest number of downVotes that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q.title, q.downVotes\\nORDER BY q.downVotes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\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 four Article that have PUBLISHED_IN links so that year are 2004!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE EXISTS {(p)-[r:PUBLISHED_IN]->()\\nWHERE r.year='2004'} \\nRETURN p\\nLIMIT 4"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Return the themes of farm competitions, sorted by year ascending."}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)\\nRETURN fc.Theme\\nORDER BY fc.Year ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 genres associated with movies having a budget over 100 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.budget > 100000000\\nRETURN DISTINCT g.name AS genre_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": "List the top 3 most common countries for registered Entities."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWITH e.countries AS country, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3\\nRETURN country, count"}]} {"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 singers are from each country?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWITH singer.country AS country, count(singer.country) AS count\\nRETURN country,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 \"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 title of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where meta is 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '217'\\nRETURN n.title AS title, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where specifications is cond-mat.soft and Journal, for which journal_id equals d3b321ed42589ea798c241aa7de23d2d?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'cond-mat.soft'})-[*]->(d:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})\\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 top 3 actors with the highest average imdbRating across movies they've acted in (minimum 3 movies)."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nWITH a, avg(m.imdbRating) AS avgRating, count(m) AS numMovies\\nWHERE numMovies >= 3\\nRETURN a.name AS actor, avgRating\\nORDER BY avgRating 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": "Who are the top 3 users mentioned in the tweets that 'Neo4j' mentions?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:MENTIONS]->(mentionedUser:User)\\nWITH mentionedUser, COUNT(*) AS mentionCount\\nORDER BY mentionCount DESC\\nLIMIT 3\\nRETURN mentionedUser.screen_name AS mentionedUser, mentionCount"}]} {"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 weight in INTERACTS3 relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)-[i:INTERACTS3]->(other:Character)\\nRETURN c.name, min(i.weight) AS minWeight\\nORDER BY minWeight\\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 people have reviewed a movie with the words \"Robin Williams\" in the summary?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary CONTAINS 'Robin Williams'\\nRETURN DISTINCT 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": "What is the 'book1BetweennessCentrality' of the character with the highest 'degree'?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN max(c.degree) AS max_degree, c.book1BetweennessCentrality\\nORDER BY max_degree DESC\\nLIMIT 1"}]} {"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 HU-IAS/K-8, DPSU-99-8, RIMS-1266!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 0e45607b74a52b79f39c242abf265272, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 3, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'3'})-[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 Modeling Credit Risk with Partial Information, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Modeling Credit Risk with Partial Information'})-[:HAS_CATEGORY]->(c:Categories)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where label is Category theory_3!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Category theory_3'\\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": "Which questions were answered and have a score of 1 or more?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true AND q.score >= 1\\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": "Find the streams that are created before 2018 and are part of a team that has more than 10 streams."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE s.createdAt < datetime('2018-01-01T00:00:00.000000Z')\\nWITH t, count(s) AS streamCount\\nWHERE streamCount > 10\\nRETURN t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the label for Topic combined with the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.key_id 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": "Which actors have acted in movies from at least three different countries?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, collect(DISTINCT m.countries) AS countries\\nWHERE size(countries) >= 3\\nRETURN a.name AS actorName"}]} {"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 also have roles as producers."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(:Movie), (p)-[:PRODUCED]->(:Movie)\\nRETURN DISTINCT p.name\\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": "What is the average, minimum, and maximum age for all French singers?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Country = 'France'\\nRETURN avg(singer.Age),min(singer.Age),max(singer.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": "Who are the first 3 actors in the movie titled 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie {title: 'Speed Racer'})\\nRETURN p.name, r.roles\\nLIMIT 3"}]} {"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 dd0a5!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS 'dd0a5'\\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 Randall!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Randall'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'Randall'\\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": "Find all movies produced by Pixar Animation Studios."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Pixar Animation Studios'})\\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": "What are the first 3 streams that have a user named 'itsbigchase' as a chatter?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'itsbigchase'})-[:CHATTER]->(s:Stream)\\nRETURN s\\nORDER BY s.createdAt 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": "List the first 3 tweets that 'Neo4j' has retweeted."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:RETWEETS]->(rt:Tweet)\\nRETURN rt\\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 \"country_codes\" values of all Entities that are linked to an Intermediary with the \"status\" of \"ACTIVE\"."}, {"role": "assistant", "content": "MATCH (i:Intermediary) -[:intermediary_of]-> (e:Entity)\\nWHERE i.status = \"ACTIVE\"\\nRETURN DISTINCT e.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 all movies that have been rated by user with ID 1."}, {"role": "assistant", "content": "MATCH (u:User {id: 1})-[:RATED]->(m:Movie)\\nRETURN m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "what are the top 3 highest support rates?"}, {"role": "assistant", "content": "MATCH (Candidate:Candidate)\\nRETURN Candidate.Support_rate\\nORDER BY Candidate.Support_rate 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 3 directors have directed movies in more than three 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 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 countries have entities that filed filings with a total amount greater than 1000000 between 2010 and 2015?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE date(f.begin) >= date('2010-01-01') AND date(f.begin) <= date('2015-12-31')\\nWITH f.filer_org_name_id AS filer_org_name_id, sum(f.amount) AS total_amount\\nWHERE total_amount > 1000000\\nMATCH (e:Entity {id: filer_org_name_id})-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT 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": "Name the top 3 production companies by the number of movies produced with a budget over 100 million USD."}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.budget > 100000000\\nRETURN pc.name AS production_company, COUNT(m) AS movie_count\\nORDER BY movie_count 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": "List the top 3 tweets from users located in 'Graphs Are Everywhere'."}, {"role": "assistant", "content": "MATCH (u:User {location: 'Graphs Are Everywhere'})-[:POSTS]->(t:Tweet)\\nRETURN t\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "For each company id, what are the companies and how many gas stations does each one operate?"}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(gs:GasStation)\\nRETURN c.Company, count(*) as num_stations\\nORDER BY num_stations DESC"}]} {"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 3, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'3'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many faculty is there in total in the year of 2002?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Year = 2002\\nRETURN sum(f.Faculty) as total"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the last names of students studying in room 111."}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Classroom = 111\\nRETURN l.LastName"}]} {"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": "Fetch eight samples of the journal_id of the Journal and the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:Topic)\\nRETURN n.journal_id, m.description\\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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the maximum and minumum grade points?"}, {"role": "assistant", "content": "MATCH (gc:Gradeconversion)\\nRETURN max(gc.gradepoint), min(gc.gradepoint)"}]} {"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 contain links and are posted by 'Neo4j'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:CONTAINS]->(link:Link)\\nRETURN tweet.text, tweet.favorites\\nORDER BY tweet.favorites 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 cities of the businesses reviewed by 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(:Review)-[:REVIEWS]->(b:Business)\\nRETURN DISTINCT b.city"}]} {"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 a 'y' value less than the average 'y' value of all Users and a 'size' greater than 2?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH avg(u.y) AS average_y\\nMATCH (u:User)\\nWHERE u.y < average_y AND u.size > 2\\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 distinct properties of nodes that are 2 hops away from Journal with journal_id equal to 6dc95119d8a737d9ffc7fe367159849b!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'6dc95119d8a737d9ffc7fe367159849b'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of the managers for gas stations that are operated by the ExxonMobil company?"}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(gs:GasStation)\\nWHERE c.Company = 'ExxonMobil'\\nRETURN gs.Manager_Name as manager_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Return the characters and durations for each actor."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Character, a.Duration"}]} {"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 contain links and have been posted by users who follow \"Neo4j\"."}, {"role": "assistant", "content": "MATCH (neo:User {screen_name: \"neo4j\"})-[:FOLLOWS]->(follower:User)\\nMATCH (follower)-[:POSTS]->(tweet:Tweet)-[:CONTAINS]->(link:Link)\\nRETURN DISTINCT tweet"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Give me a list of all the last names of authors sorted in alphabetical order"}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.lname\\nORDER BY a.lname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Find the maximum and minimum monthly rental for all student addresses."}, {"role": "assistant", "content": "MATCH (a:Student_Address)\\nRETURN max(a.monthly_rental), min(a.monthly_rental)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of pages per minute color?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN avg(p.pages_per_minute_color)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"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_id is d4a4409b7e8a77f4894c998a04162257 and Topic, for which label equals Mathematics_6?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[*]->(d:Topic{label:'Mathematics_6'})\\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": "For each Article, find the number of DOI linked via HAS_DOI and retrieve the comments of the Article and the DOI counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS doi_count\\nORDER BY doi_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": "Which characters have a 'degree' higher than 10 and interacted with \"Cersei-Lannister\" in any book?"}, {"role": "assistant", "content": "MATCH (cersei:Character {name: \"Cersei-Lannister\"})\\nMATCH (other:Character)\\nWHERE other.degree > 10 AND ( (cersei)-[:INTERACTS]->(other) OR (cersei)-[:INTERACTS1]->(other) OR (cersei)-[:INTERACTS2]->(other) OR (cersei)-[:INTERACTS3]->(other) OR (cersei)-[:INTERACTS45]->(other) )\\nRETURN DISTINCT 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": "Which three actors have acted in movies in more than 3 different languages?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, count(DISTINCT m.languages) AS numLanguages\\nWHERE numLanguages > 3\\nRETURN a.name, numLanguages\\nORDER BY numLanguages 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 521-554 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 = '521-554'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY 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 on 'California Dr' and their corresponding categories?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address = '723 California Dr'\\nRETURN b.name AS businessName, c.name AS categoryName"}]} {"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 `fastrf_embedding` values in the first dimension."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.fastrf_embedding[0] AS embedding_value\\nORDER BY embedding_value DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many posts does the least active user have?"}, {"role": "assistant", "content": "MATCH (u:User)-[:CREATED]->(p:Post)\\nWITH u, COUNT(p) AS postCount\\nORDER BY postCount ASC\\nLIMIT 1\\nRETURN postCount"}]} {"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 is the template type code of the template used by document with the name \"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 \"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": "Who are the directors of movies that have an IMDb rating greater than 8.0?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:DIRECTED]-(d:Director)\\nWHERE m.imdbRating > 8.0\\nRETURN DISTINCT d.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 users with the lowest number of followers."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.screen_name, u.followers\\nORDER BY u.followers ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "How many companies operates airlines in each airport?"}, {"role": "assistant", "content": "MATCH (a:Airport)<-[:LANDS_AT]-(b:Flight)-[:OPERATED_BY]->(c:OperateCompany)\\nRETURN a.id, 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 top 3 games played by streams with the most moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(m)\\nWITH s, size(collect(m)) AS moderatorCount\\nMATCH (s)-[:PLAYS]->(g:Game)\\nWITH g.name AS gameName, sum(moderatorCount) AS totalModeratorCount\\nORDER BY totalModeratorCount DESC\\nLIMIT 3\\nRETURN gameName, totalModeratorCount"}]} {"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 of streams that have a description containing the word \"community\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'community'\\nMATCH (s)-[:VIP]->(u:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Return the duration of the actor with the greatest age."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Duration\\nORDER BY a.age 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": "What are the top 5 tags used in questions with a score less than zero?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score < 0\\nRETURN t.name, count(q) AS usage\\nORDER BY usage 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": "Who are the top 5 characters by 'book1PageRank' in descending order?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank IS NOT NULL\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank DESC\\nLIMIT 5"}]} {"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 Amnon and list their properties, including those of Author!"}, {"role": "assistant", "content": "MATCH (b:Author)-[r]->(n)\\nWHERE b.first_name = 'Amnon'\\nRETURN properties(b) AS Author_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "list the card number of all members whose hometown address includes word \"Kentucky\"."}, {"role": "assistant", "content": "MATCH (m:Member)\\nWHERE m.Hometown =~ \"(?i).*Kentucky.*\"\\nRETURN m.Card_Number"}]} {"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 entities that have filed the most filings with a beneficiary bank from 'United States'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank_country = 'United States'\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nRETURN e, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Journal where journal_id is f663b7749e96288af8628ca3cdb4f021?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "For each journal_committee, find the editor name and the journal theme."}, {"role": "assistant", "content": "MATCH (j:Journal)-[:EDited_BY]->(e:Editor)\\nRETURN e.Name, j.Theme"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many stadiums does each country have?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nRETURN s.Country AS country, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Keyword\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Categories and Keyword?"}, {"role": "assistant", "content": "MATCH (a:Categories)-[r]->(n), (d:Keyword)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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 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., by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e: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.'})-[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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 directors who have worked on the most films."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:CREW_FOR]->(m:Movie)\\nWHERE r.job = 'Director'\\nWITH p, count(m) AS films_directed\\nORDER BY films_directed DESC\\nLIMIT 5\\nRETURN p.name AS Director, films_directed"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the poll source corresponding to the candidate who has the oppose rate."}, {"role": "assistant", "content": "MATCH (c:Candidate)\\nRETURN c.Poll_Source\\nORDER BY c.Oppose_rate 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 is the struck_off_date of the entity with the internal_id '1001263'?"}, {"role": "assistant", "content": "MATCH (e:Entity {internal_id: '1001263'})\\nRETURN e.struck_off_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": "List the characters who are part of both community 578 and 579. Limit to 5 characters."}, {"role": "assistant", "content": "MATCH (c1:Character {community: 578}), (c2:Character {community: 579})\\nWHERE c1.name = c2.name\\nRETURN c1.name AS CharacterName\\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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the department in the Building Mergenthaler?"}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Building = \"Mergenthaler\"\\nRETURN d.DName"}]} {"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 associated with teams and have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(:Team)\\nWHERE s.followers > 10000\\nRETURN s.name, s.followers\\nORDER BY s.followers 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 streams have the most unique games played?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, COUNT(DISTINCT g) AS uniqueGames\\nORDER BY uniqueGames DESC\\nLIMIT 3\\nRETURN s.name AS streamName, uniqueGames"}]} {"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": "Retrieve the name for Journal that is linked through a PUBLISHED_IN relationship with the Article where title is A New Cohomology Theory for Orbifold!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.title='A New Cohomology Theory for Orbifold'\\nRETURN m.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": "Who are the top 3 moderators in the stream with the lowest follower count?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(m:User)\\nWITH s, m\\nORDER BY s.followers ASC, count{(m)-[:MODERATOR]->(s)} DESC\\nLIMIT 1\\nWITH s\\nMATCH (s)<-[:MODERATOR]-(moderator:User)\\nRETURN moderator.name AS moderator, moderator.followers AS followers\\nORDER BY followers 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 properties of nodes that are 3 hops away from Author with author_id equal to a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.author_id = 'a7193c11b0713ccfbb34c90cf18d3e5f'\\nRETURN 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": "Fetch title of the Article that are connected to Journal via PUBLISHED_IN where pages are at most 641-672!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.pages < '641-672'}\\nRETURN n.title AS 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 customer has placed the most orders?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, count(*) AS orderCount\\nORDER BY orderCount DESC\\nRETURN c.companyName, orderCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names and total passengers for all train stations not in London."}, {"role": "assistant", "content": "MATCH (s:Station)\\nWHERE s.Location <> 'London'\\nRETURN s.Name, s.Total_Passengers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the team and starting year of technicians?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Team, t.Starting_Year"}]} {"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 (u:User {screen_name: 'neo4j'})<-[:MENTIONS]-(t:Tweet)\\nWHERE t.favorites > 100\\nRETURN t.text, t.favorites, t.created_at\\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": "List the first 3 movies that have been produced and directed by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:PRODUCED]-(p)\\nRETURN m.title AS MovieTitle\\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 characters involved in the top 3 heaviest INTERACTS45 relationships?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[i:INTERACTS45]->(c2:Character)\\nRETURN c1.name, c2.name, i.weight AS weight\\nORDER BY i.weight DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the total points of gymnasts in descending order of floor exercise points."}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN g.Total_Points\\nORDER BY g.Floor_Exercise_Points DESC"}]} {"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 with a degree less than 5 but greater than 0."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree < 5 AND c.degree > 0\\nRETURN c"}]} {"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 e7b0a9b48142710ab6e87f136f6b7606 and traversing through Categories with specifications cs.CC!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[*]->(d:Categories{specifications:'cs.CC'})-[*]->(n)\\nRETURN n"}]} {"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": "How many paths are there between Keyword where key_id is 6ded85146e3dbfb1bb866831b8948f5b and Journal, for which journal_id equals 6dc95119d8a737d9ffc7fe367159849b?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[*]->(d:Journal{journal_id:'6dc95119d8a737d9ffc7fe367159849b'})\\nRETURN count(p)"}]} {"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 fd6fcf9374c7e5fd0377800da5e8f846, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'fd6fcf9374c7e5fd0377800da5e8f846'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the average and minimum weight for each gender."}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN avg(p.Weight), min(p.Weight), p.Sex"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many distinct hometowns did these people have?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWITH count(DISTINCT p.Hometown) as hometowns\\nRETURN hometowns"}]} {"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 last_name is Leoni or author_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Leoni' OR n.author_id IS NOT NULL\\nRETURN DISTINCT n.author_id AS author_id"}]} {"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": "How many paths are there between Author where first_name is Bernhard and Categories, for which category_id equals 4b7053a7def1fb0250a0e83ebd2f9a7b?"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'Bernhard'})-[*]->(d:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who follows Bob?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(:User {name: 'Bob'})\\nRETURN u.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 the character with the name 'Ryman-Frey' and return their centrality."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Ryman-Frey'})\\nRETURN c.centrality"}]} {"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 minimum 'pagerank' value?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.pagerank\\nORDER BY c.pagerank\\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 1056 or article_id is less than 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1056 OR n.article_id < 1013\\nRETURN n\\nLIMIT 8"}]} {"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 A Boolean function of n bits is balanced if it takes the value 1 with\nprobability 1/2. We exhibit a balanced Boolean function with a randomized\nevaluation procedure (with probability 0 of making a mistake) so that on\nuniformly random inputs, no input bit is read with probability more than\nTheta(n^{-1/2} sqrt{log n}). We give a balanced monotone Boolean function for\nwhich the corresponding probability is Theta(n^{-1/3} log n). We then show that\nfor any randomized algorithm for evaluating a balanced Boolean function, when\nthe input bits are uniformly random, there is some input bit that is read with\nprobability at least Theta(n^{-1/2}). For balanced monotone Boolean functions,\nthere is some input bit that is read with probability at least Theta(n^{-1/3}).\n and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' A Boolean function of n bits is balanced if it takes the value 1 with probability 1/2. We exhibit a balanced Boolean function with a randomized evaluation procedure (with probability 0 of making a mistake) so that on uniformly random inputs, no input bit is read with probability more than Theta(n^{-1/2} sqrt{log n}). We give a balanced monotone Boolean function for which the corresponding probability is Theta(n^{-1/3} log n). We then show that for any randomized algorithm for evaluating a balanced Boolean function, when the input bits are uniformly random, there is some input bit that is read with probability at least Theta(n^{-1/2}). For balanced monotone Boolean functions, there is some input bit that is read with probability at least Theta(n^{-1/3}). '})-[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 \"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 VIPs of users with more than 10000 followers?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.followers > 10000\\nMATCH (u)-[:VIP]->(s:Stream)\\nWITH avg(s.total_view_count) AS average_view_count\\nRETURN average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "How many regions are affected?"}, {"role": "assistant", "content": "MATCH (s:Storm)-[r:AFFECTS]->(n:Region)\\nRETURN count(DISTINCT n.Region_id)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which doctors have given a diagnosis to a patient who later had a surgery?"}, {"role": "assistant", "content": "MATCH (doctor:Doctor)-[:GAVE_DIAGNOSIS]->(diagnosis:Diagnosis)<-[:HAS_DIAGNOSIS]-(p:Patient)-[:HAD_SURGERY]->(s:Surgery)\\nWHERE datetime(s.date) > datetime(diagnosis.date)\\nRETURN DISTINCT doctor.name as doctor"}]} {"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 last_name of the Author and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Author)\\nRETURN n.last_name, m.author_id\\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 the user with the highest reputation."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u, q\\nORDER BY u.reputation 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 top 5 movies by revenue that were released in languages other than English?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE NOT 'English' IN m.languages\\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": "What are the top 5 highest budget movies?"}, {"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 \"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 languages? List the top 5."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, COUNT(l) AS languageCount\\nORDER BY languageCount DESC\\nLIMIT 5\\nRETURN s.name AS streamName, languageCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the author_id from Author where last_name is not Chakrabarti!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name <> 'Chakrabarti'\\nRETURN DISTINCT n.author_id AS author_id"}]} {"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 with a former name and their current name."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.former_name IS NOT NULL\\nRETURN e.former_name AS FormerName, e.name AS CurrentName"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "How many courses are there in total?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to DOI where doi_id is 3cee0a24d271bd40a0fb03d70f70dcc7, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'3cee0a24d271bd40a0fb03d70f70dcc7'})-[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 }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report where report_id is 9301481d98615f874763a17d18e2dc92, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Report{report_id:'9301481d98615f874763a17d18e2dc92'})-[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 \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or affiliation 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.affiliation CONTAINS 'S. O.'\\nRETURN m AS node"}]} {"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 2007 and are PUBLISHED_IN linked to Journal, where meta is 217?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'2007'})-[r:PUBLISHED_IN {meta :'217'}]->(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": "Which 3 products have been ordered the most times?"}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(p:Product)\\nRETURN p.productName, COUNT(o) AS orderCount\\nORDER BY orderCount 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 is the total number of users who are moderators of the stream \"maximilian_dood\"?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: \"maximilian_dood\"})\\nMATCH (s)-[:MODERATOR]->(u:User)\\nRETURN count(DISTINCT u) AS total_moderators"}]} {"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 who share the same community and have INTERACTS relationships."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS]-(c2:Character)\\nWHERE c1.community = c2.community\\nRETURN c1.name AS Character1, c2.name AS Character2, c1.community AS SharedCommunity"}]} {"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 'Samoa'?"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.jurisdiction_description = 'Samoa'\\nWITH DISTINCT a\\nMATCH (e:Entity)-[:registered_address]->(a)\\nRETURN count(DISTINCT 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 3 movies released in the year 2000 or later with a rating under 5."}, {"role": "assistant", "content": "MATCH (m:Movie)-[r:RATED]->()\\nWHERE m.year >= 2000 AND r.rating < 5\\nRETURN m\\nORDER BY m.released\\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 all businesses that have been reviewed by 'Jenny'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b"}]} {"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 the word \"coolest\" in their review summary?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary CONTAINS 'coolest'\\nRETURN DISTINCT 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": "What are the first 3 banks that have filed the most filings?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3\\nRETURN e.name AS BankName, filings_count"}]} {"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 name of teachers whose hometown is not `` Little Lever Urban District '' ."}, {"role": "assistant", "content": "MATCH (teacher:teacher)\\nWHERE teacher.Hometown <> 'little lever urban district'\\nRETURN teacher.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_id of the Report and the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:Topic)\\nRETURN n.report_id, m.description\\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 top 5 types of machines by CPU power available in the system."}, {"role": "assistant", "content": "MATCH (m:Machine)-[:TYPE]->(t:Type)\\nRETURN t.type AS MachineType, t.cpu AS CPUPower\\nORDER BY t.cpu DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_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 eea477d68b70c3a05be12567240033ef and traversing through Author with first_name S. O.!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[*]->(d:Author{first_name:'S. O.'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians by ascending order of quality rank for the machine they are assigned?"}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T3:Technician)\\nMATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T2:Machine)\\nRETURN T3.Name\\nORDER BY T2.quality_rank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "how many airports are there in each country?"}, {"role": "assistant", "content": "MATCH (a:Airport)\\nRETURN a.Country, count(*) as country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show name, address road, and city for all branches sorted by open year."}, {"role": "assistant", "content": "MATCH (b:Branch)\\nRETURN b.Name, b.Address_road, b.City\\nORDER BY b.Open_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 top 3 producers of movies with a tagline including 'Speed'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.tagline CONTAINS 'Speed'\\nRETURN p.name, count(m) AS movies_produced\\nORDER BY movies_produced 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 an actor born before 1900?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.born < date(\"1900-01-01\")\\nRETURN m.title AS MovieTitle, m.year AS ReleaseYear\\nORDER BY m.year 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": "Find the top 5 streams with the highest total view count that have a chatter who also chatters on a stream with the game \"Rust\"."}, {"role": "assistant", "content": "MATCH (s1:Stream)-[:PLAYS]->(:Game {name: \"Rust\"})\\nWITH s1\\nMATCH (s1)<-[:CHATTER]-(u:User)-[:CHATTER]->(s2:Stream)\\nWITH DISTINCT s2\\nORDER BY s2.total_view_count DESC\\nLIMIT 5\\nRETURN s2"}]} {"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 suppliers that provide products to the 'Dairy Products' category."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN s.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\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 Categories where category_id is 994d468c3f0dd780baf58c6d7f205afd and traversing through Categories with specifications math.AT!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'994d468c3f0dd780baf58c6d7f205afd'})-[*]->(d:Categories{specifications:'math.AT'})-[*]->(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 5 most expensive products supplied by 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: 'Exotic Liquids'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice 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 paths are there between Report where report_id is 45009bf7f2e3f4f275de6d92deab7b27 and Report, for which report_no equals JNMP 4/2002 (Letter)?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[*]->(d:Report{report_no:'JNMP 4/2002 (Letter)'})\\nRETURN count(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": "Identify the first 3 users whose questions have never been downVoted."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE NOT exists{ (q)-[:TAGGED]->(:Tag)\\nWHERE q.downVotes > 0 }\\nRETURN u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Keyword for which key_id is c807a6943bac079cc85fda45518ea7f4, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c807a6943bac079cc85fda45518ea7f4'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(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": "What are the tags associated with questions that have a score of zero?"}, {"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 \"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 released in the 21st century that Laurence Fishburne produced."}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Laurence Fishburne\"})-[:PRODUCED]->(m:Movie)\\nWHERE m.released >= 2001\\nRETURN m\\nORDER BY m.released ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the abstract for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.abstract AS Records"}]} {"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": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 31 pages, LaTex and PUBLISHED_IN has year on 2001!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2001'}]->(m)\\nWHERE n.comments='31 pages, LaTex'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and population of district with population between 200000 and 2000000"}, {"role": "assistant", "content": "MATCH (d:District)\\nWHERE d.City_Population >= 200000 AND d.City_Population <= 2000000\\nRETURN d.District_name, d.City_Population"}]} {"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 1008!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1052 OR n.article_id < 1008\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the name, location, and number of platforms for all stations."}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN s.Name, s.Location, s.Number_of_Platforms"}]} {"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 reviews for businesses located at '200 W Pine St'."}, {"role": "assistant", "content": "MATCH (b:Business {address: '200 W Pine St'})<-[:REVIEWS]-(r:Review)\\nRETURN r\\nORDER BY r.stars DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show the name of storms which don't have affected region in record."}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE NOT EXISTS((s)-[:AFFECTS]->(:Region))\\nRETURN s.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": "List the service providers of entities with the jurisdiction 'SAM'."}, {"role": "assistant", "content": "MATCH (e:Entity {jurisdiction: 'SAM'})\\nRETURN DISTINCT e.service_provider"}]} {"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_no of the Report that is not related to the Report with the report_no SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint\n No. 73!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Report {report_no: 'SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint No. 73'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.report_no"}]} {"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 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Author {author_id: '788db042978edbbfc654927e23ac21d1'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.author_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": "Which person has the highest average rating for movies they wrote?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)<-[r:REVIEWED]-()\\nWITH p, avg(r.rating) AS average_rating\\nRETURN p.name, average_rating\\nORDER BY average_rating DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Article for which 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]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 none !"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no CONTAINS 'none '\\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 reviews with a rating less than 4 stars."}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars < 4.0\\nRETURN r.reviewId AS reviewId, r.text AS reviewText, r.stars AS rating, 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 \"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: 3082 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '3082'}) -[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 \"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 hashtags used in tweets that mention 'neo4j'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(:User {screen_name: 'neo4j'})-[:POSTS]->(tweet)-[:TAGS]->(h:Hashtag)\\nRETURN DISTINCT h.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the publishers who have published a book in both 1989 and 1990?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWHERE b.Year = 1989\\nWITH b.Publisher AS publisher\\nMATCH (b2:BookClub)\\nWHERE b2.Year = 1990 AND b2.Publisher = publisher\\nRETURN DISTINCT publisher"}]} {"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": "Tell me the age of the oldest dog."}, {"role": "assistant", "content": "MATCH (dogs:Dogs)\\nRETURN max(dogs.age)"}]} {"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 logarithmic barrier penalty!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name: 'logarithmic barrier penalty'}) -[: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": "Which 3 countries have the most entities linked as originators in the filings?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 3\\nMATCH (e)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS CountryName, count(e) AS NumberOfEntities\\nORDER BY NumberOfEntities DESC"}]} {"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 movies with a 'Silly, but fun' review summary?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:REVIEWED {summary: 'Silly, but fun'}]->(m:Movie)\\nWITH p, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN p.name AS personName, movieCount"}]} {"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 officers who are connected to addresses in Apia, Samoa."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:registered_address]->(a:Address)\\nWHERE a.countries = 'Samoa' AND a.address CONTAINS 'Apia'\\nRETURN o.name, o.node_id, a.address"}]} {"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 99571eecaa5c5d622bb0d1f855752d5f!"}, {"role": "assistant", "content": "MATCH path=(:Journal {journal_id:'99571eecaa5c5d622bb0d1f855752d5f'})-->()\\nRETURN path"}]} {"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 b1d13c8b6874949821d038a8a71379d1!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[*2]->(n)\\nRETURN DISTINCT 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": "Fetch unique values of specifications and category_id from Categories where specifications does not start with a!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE NOT n.specifications STARTS WITH 'a'\\nRETURN DISTINCT n.specifications AS specifications, n.category_id AS category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2014-11-11 and Report, with report_id equal 6949743cea68a5e6f3f5bd286694d356, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2014-11-11'})-[*]-(e:Report{report_id:'6949743cea68a5e6f3f5bd286694d356'}))\\nRETURN nodes(p)"}]} {"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 = 303-348."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '303-348'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"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 orders that were shipped later than the required date."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shippedDate > o.requiredDate\\nRETURN o.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": "List the first 3 categories and their descriptions."}, {"role": "assistant", "content": "MATCH (c:Category)\\nRETURN c.categoryName, c.description\\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 3 most common taglines found in the movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline IS NOT NULL\\nRETURN m.tagline AS Tagline, count(m) AS Frequency\\nORDER BY Frequency DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2011-11-10 and Article, with comments equal 44 pages, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2011-11-10'})-[*]-(e:Article{comments:'44 pages'}))\\nRETURN nodes(p)"}]} {"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": "Find nodes that are at the end of a path starting at Article where article_id is 1069 and traversing through DOI with name 10.1007/PL00005532!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1069'})-[*]->(d:DOI{name:'10.1007/PL00005532'})-[*]->(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 top 3 most expensive products supplied by suppliers from 'UK'."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE s.country = 'UK'\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice DESC\\nLIMIT 3"}]} {"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 contains fd6fc!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS 'fd6fc'\\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 \"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 title is $A_{\\infty}$-structures on an elliptic curve, through Journal via PUBLISHED_IN with year 2004?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'$A_{\\infty}$-structures on an elliptic curve'})-[:PUBLISHED_IN {year: '2004'}]->(c:Journal)-[r]->(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 tags associated with questions that have a score equal to 0 and are tagged with 'apollo'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t1:Tag {name: 'apollo'})\\nWHERE q.score = 0\\nMATCH (q)-[:TAGGED]->(t2)\\nRETURN DISTINCT t2.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": "How many entities are there that have not been a beneficiary in any filings?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE NOT EXISTS { \\nMATCH (e)<-[:BENEFITS]-(:Filing) }\\nRETURN count(e) AS numberOfEntities"}]} {"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 never been on order (unitsOnOrder = 0) and are not discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder = 0 AND p.discontinued = false\\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": "Which 3 racks in DataCenter 'DC1' contain switches of type 's-2/4/5'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(rack:Rack)-[:HOLDS]->(switch:Switch), (rack)-[:HOLDS]->(machine:Machine)-[:TYPE]->(type:Type {name: 's-2/4/5'})\\nRETURN DISTINCT rack.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": "Which reviews contain the word 'selection' in their text?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.text CONTAINS 'selection'\\nRETURN r.reviewId, r.text"}]} {"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 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 PUBLISHED_IN has year on 2001!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2001'}]->(m)\\nWHERE n.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. '\\nRETURN m.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 filings by amount that were filed between January 1, 2015, and December 31, 2015?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin >= datetime(\"2015-01-01T00:00:00Z\") AND f.end <= datetime(\"2015-12-31T23:59:59Z\")\\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 has produced movies but never acted in any?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE exists{ (p)-[:PRODUCED]->(:Movie) } AND NOT exists{ (p)-[:ACTED_IN]->(:Movie) }\\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": "Which 3 movies have the smallest difference between their original and final titles?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, apoc.text.levenshteinDistance(m.original_title, m.title) AS title_difference\\nORDER BY title_difference ASC\\nLIMIT 3\\nRETURN m.title AS final_title, m.original_title AS original_title, title_difference"}]} {"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's name contains \"Bank\" and the beneficiary entity's country is 'GBR'."}, {"role": "assistant", "content": "MATCH (filing:Filing)-[:ORIGINATOR]->(originator:Entity), (filing2:Filing)-[:BENEFITS]->(beneficiary:Entity)-[:COUNTRY]->(country:Country)\\nWHERE originator.name CONTAINS 'Bank' AND country.code = 'GBR'\\nRETURN DISTINCT filing"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the affiliation of the Author that is not related to the Author with the affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Author {affiliation: 'unspecified'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.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 first 3 movies with a budget over 100 million dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Author and Report?"}, {"role": "assistant", "content": "MATCH (a:Author)-[r]->(n), (d:Report)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the publisher of the publication with the highest price."}, {"role": "assistant", "content": "MATCH (p:Publication)\\nRETURN p.Publisher\\nORDER BY p.Price DESC\\nLIMIT 1"}]} {"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 641-672!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '641-672'\\nRETURN n.comments AS comments, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show different publishers together with the number of publications they have."}, {"role": "assistant", "content": "MATCH (p:Publication)\\nRETURN p.Publisher, 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 directors have won the Academy Award for Best Director more than once?"}, {"role": "assistant", "content": "MATCH (p:Person)-[cf:CREW_FOR]->(m:Movie)\\nWHERE cf.job = 'Director'\\nWITH p, count(m) AS movieCount\\nWHERE movieCount > 1\\nRETURN p.name, 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 the first 3 adult films with a budget less than 50000 USD."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.budget < 50000\\nRETURN a.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\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 five Article that are not linked through PUBLISHED_IN relationships where year is 2000!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE NOT EXISTS {(p)-[r:PUBLISHED_IN]->()\\nWHERE r.year='2000' }\\nRETURN p\\nLIMIT 5"}]} {"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 J. Number Theory, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{name:'J. Number Theory'})-[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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 department of the CREW_FOR relationship with job 'Producer' for the movie 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})- [r:CREW_FOR {job: 'Producer'}] - ()\\nRETURN r.department"}]} {"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 egress routers are available in the 'DC1' DataCenter?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(e:Egress)\\nRETURN e.name AS EgressRouter"}]} {"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 5d653!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id CONTAINS '5d653'\\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": "Which entity filed the filing with the lowest 'amount'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f\\nORDER BY f.amount ASC\\nLIMIT 1\\nMATCH (e:Entity)-[:FILED]->(f)\\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": "What are the top 5 movies with the most countries listed in their production?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title AS title, size(m.countries) AS countryCount\\nORDER BY countryCount 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 persons have acted in and directed the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN p.name AS personName, m.title AS movieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Journal of Mathematical Logic and Article, for which title is $A_{\\infty}$-structures on an elliptic curve?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'}), (b:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})\\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 businesses have reviews written on '2016-11-21'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE r.date = date('2016-11-21')\\nRETURN b.name, b.address, b.city, b.state"}]} {"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 1006!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1006'\\nRETURN DISTINCT n.comments AS comments"}]} {"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 with an average rating between 4 and 4.5."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWITH b, avg(r.stars) AS averageRating\\nWHERE averageRating >= 4 AND averageRating <= 4.5\\nRETURN b.name AS businessName, averageRating"}]} {"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 are tagged with both 'graphql' and 'apollo'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(tag1:Tag {name: 'graphql'})\\nMATCH (q)-[:TAGGED]->(tag2:Tag {name: 'apollo'})\\nRETURN count(DISTINCT q)"}]} {"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 directed the most movies with a tagline containing 'world'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.tagline CONTAINS 'world'\\nWITH p, COUNT(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN p.name AS director, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show minimum, maximum, and average market value for all companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN min(c.Market_Value), max(c.Market_Value), avg(c.Market_Value)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many faculty lines are there at San Francisco State University in 2004?"}, {"role": "assistant", "content": "MATCH (f:Faculty)-[:TEACHES]->(c:Campus)\\nWHERE f.Year = 2004 AND c.Campus = \"San Francisco State University\"\\nRETURN f.Faculty"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to UpdateDate where update_date is 2018-11-28, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2018-11-28'})-[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 },\n \"Keyword\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Article and Keyword, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*]-(n)-[*]-(b:Keyword)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_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 cb7bf6a30b0381c15264305ad7677b30 and traversing through Author with first_name Marco!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[*]->(d:Author{first_name:'Marco'})-[*]->(n)\\nRETURN n"}]} {"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 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!"}, {"role": "assistant", "content": "MATCH (n: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. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\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": "What are the names of the top 5 characters with the highest book1PageRank?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name AS character, c.book1PageRank AS pageRank\\nORDER BY pageRank 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 businesses along with their review dates that have been reviewed by 'Will'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName, r.date AS reviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "List the vehicle flight number, date and pilot of all the flights, ordered by altitude."}, {"role": "assistant", "content": "MATCH (f:Flight)\\nRETURN f.Vehicle_Flight_number, f.Date, f.Pilot\\nORDER BY f.Altitude ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 directed by 'Christopher Nolan'?"}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Christopher Nolan'})-[:CREW_FOR {job: 'Director'}]->(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nWHERE cc.price_in_dollars > 700\\nRETURN cc.catalog_entry_name, cc.capacity"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "How many departments are in the division AS?"}, {"role": "assistant", "content": "MATCH (d:Department {Division: \"AS\"})\\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": "List characters with the lowest 5 book1PageRanks."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank IS NOT NULL\\nRETURN c.name AS character, c.book1PageRank AS pageRank\\nORDER BY pageRank\\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 country codes for entities that have been struck off?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL\\nRETURN e.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": "Display movies that have been rated after January 1, 2015."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-(u:User)\\nWHERE r.timestamp >= date('2015-01-01')\\nRETURN m.title, m.id, r.rating, r.timestamp"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the different statuses of cities and the average population of cities with each status."}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN c.Status, avg(c.Population)"}]} {"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 with an area greater than 4 and a size less than 3."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area > 4 AND u.size < 3\\nRETURN u.label"}]} {"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 have a common property with Article where article_id is 1006 and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1006'})-[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 \"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 mobile phone number of the student named Timmothy Ward ?"}, {"role": "assistant", "content": "MATCH (students:Students)\\nWHERE students.first_name = 'timmothy' AND students.last_name = 'ward'\\nRETURN students.cell_mobile_number"}]} {"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": "How many paths are there between 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 Report, for which report_id equals c3c968646b7780fada2a98b2a5a61746?"}, {"role": "assistant", "content": "MATCH p=(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. '})-[*]->(d:Report{report_id:'c3c968646b7780fada2a98b2a5a61746'})\\nRETURN count(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 all questions asked by users whose display name ends with 'Le'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.display_name ENDS WITH 'Le'\\nRETURN q.title AS question_title, q.link AS question_link, q.createdAt AS created_at"}]} {"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 reviews written by the user named 'Angie'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)\\nRETURN r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to UpdateDate where update_date is 2008-01-29, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2008-01-29'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"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 Topic where label is Topology_5 and traversing through Journal with journal_id fce69ad0112a3426c57a0582a2b8620f!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Topology_5'})-[*]->(d:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[*]->(n)\\nRETURN n"}]} {"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 d3b321ed42589ea798c241aa7de23d2d and list their properties, including those of Journal!"}, {"role": "assistant", "content": "MATCH (b:Journal)-[r]->(n)\\nWHERE b.journal_id = 'd3b321ed42589ea798c241aa7de23d2d'\\nRETURN properties(b) AS Journal_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": "Find the top 5 movies with the most votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m\\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": "Identify all businesses reviewed by 'Jenny' in '2016' and list the review stars and texts."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date.year = 2016\\nRETURN b.name AS BusinessName, r.stars AS Stars, 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": "Find the actors who have starred in movies with a release date before their birth."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE date(m.released) < a.born\\nRETURN DISTINCT a.name"}]} {"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 Jo!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name =~'Jo.*'\\nRETURN n"}]} {"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: 21 pages, AMS-LaTeX and be PUBLISHED_IN with year 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.year IS NOT NULL\\nRETURN n.journal_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 Latex, 9 pages, no figures!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'Latex, 9 pages, no figures'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.first_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": "Find all people born in 1949 who have directed a movie."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born = 1949 AND exists{ (p)-[:DIRECTED]->(:Movie) }\\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 names of the first 3 games played by streams that have a URL ending in 'itsbigchase'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.url ENDS WITH 'itsbigchase'\\nRETURN g.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 suppliers who are based in non-UK European countries."}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.country IN ['Germany', 'France', 'Italy', 'Spain', 'Netherlands', 'Belgium', 'Sweden', 'Denmark', 'Finland', 'Norway', 'Switzerland', 'Austria', 'Ireland', 'Portugal', 'Greece'] AND s.country <> 'UK'\\nRETURN s.companyName AS SupplierName, s.country AS Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "List the name of actors whose age is not 20."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.age <> 20\\nRETURN 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": "Who are the top 3 users amplified by 'Me'?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(u:User)\\nRETURN u.name, u.screen_name\\nORDER BY u.followers 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 suppliers have the most diverse range of product categories?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, count(DISTINCT c) AS categoryCount\\nORDER BY categoryCount DESC\\nLIMIT 3\\nRETURN s.companyName, categoryCount"}]} {"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 most viewed streams that have a language set to 'en'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\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 \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the first_name for Author combined with the affiliation for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.first_name AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Report with report_id equal to 45009bf7f2e3f4f275de6d92deab7b27!"}, {"role": "assistant", "content": "MATCH (a:Report)-[*3]->(n)\\nWHERE a.report_id = '45009bf7f2e3f4f275de6d92deab7b27'\\nRETURN properties(n) 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": "Which country has produced the most comedy movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Comedy'})\\nMATCH (m)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH c, count(m) AS movie_count\\nORDER BY movie_count DESC\\nRETURN c.name AS country_name, movie_count\\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 top 5 most frequently ordered products in the 'Produce' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Produce'})\\nMATCH (o:Order)-[r:ORDERS]->(p)\\nRETURN p.productName, COUNT(r) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve all the first and last names of authors in the alphabetical order of last names."}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.fname, a.lname\\nORDER BY a.lname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of regions that were affected by the storm in which the most people died?"}, {"role": "assistant", "content": "MATCH (T1:Storm)-[:AFFECTS]->(T2:Region)\\nWHERE T1.Number_Deaths IS NOT NULL\\nRETURN T2.Region_name\\nORDER BY T1.Number_Deaths 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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first name of students in the descending order of age."}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Fname\\nORDER BY s.Age 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": "List all the types of applications running in zone 3 of DataCenter DC1."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Rack {zone: 3})-[:HOLDS]->(m:Machine)-[:RUNS]->(app:Application)\\nRETURN DISTINCT app.name AS ApplicationType"}]} {"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 top 5 streams that are playing the game 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nRETURN s.name AS stream, s.total_view_count AS views\\nORDER BY views 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": "What are the top 5 tweets by 'Neo4j' based on favorites count?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nRETURN tweet.text, tweet.favorites\\nORDER BY tweet.favorites DESC\\nLIMIT 5"}]} {"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": "Return the cluster for Topic combined with the author_id for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.cluster AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.author_id 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": "List the 3 most recent tweets that mention 'Neo4j' and contain a link."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nMATCH (t)-[:CONTAINS]->(l:Link)\\nRETURN t.text AS tweet_text, t.created_at AS created_at, l.url AS link_url\\nORDER BY t.created_at 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 top 3 entities that benefited from filings with amounts less than 100?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.amount < 100\\nWITH e, count(f) AS benefitCount\\nORDER BY benefitCount DESC\\nRETURN e.name, benefitCount\\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 orders with a freight cost greater than $100."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE toFloat(o.freight) > 100\\nRETURN o.orderID, o.freight\\nORDER BY toFloat(o.freight) 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 unique values of report_id and report_no from Report where report_id does not start with c!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE NOT n.report_id STARTS WITH 'c'\\nRETURN DISTINCT n.report_id AS report_id, n.report_no AS report_no"}]} {"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 all distinct countries where singers above age 20 are from?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.age > 20\\nRETURN DISTINCT singer.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": "Which genres have the most movies with a runtime over 120 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.runtime > 120\\nRETURN g.name AS Genre, count(m) AS MovieCount\\nORDER BY MovieCount DESC"}]} {"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 three most recent orders, based on orderDate?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o\\nORDER BY o.orderDate DESC\\nLIMIT 3\\nRETURN o.orderID, o.orderDate, o.customerID, o.shipName, o.shipCity, o.shipCountry"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"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 affiliation is unspecified and DOI, for which doi_id is 563c3ceee67bbf5fc29c764b86a8c8ca?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'}), (b:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the official names of the cities that have hosted more than one competition."}, {"role": "assistant", "content": "MATCH (c:City)<-[:TAKES_PLACE_IN]-(fc:Farm_competition)\\nWITH c, COUNT(fc) AS count\\nWHERE count > 1\\nRETURN c.Official_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 average number of followers for streams that use the Russian language (\"ru\")?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"ru\"\\nWITH avg(s.followers) AS average_followers\\nRETURN average_followers"}]} {"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 revenue generated by the product 'Aniseed Syrup'?"}, {"role": "assistant", "content": "MATCH (p:Product {productName: 'Aniseed Syrup'})-[:ORDERS]->(o:Order)\\nWITH p, o, toFloat(o.unitPrice) * o.quantity AS revenue\\nRETURN sum(revenue) AS 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 are the 3 most popular movies in the genre 'Comedy'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Comedy'})\\nRETURN m.title, m.popularity\\nORDER BY m.popularity 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 first 3 directors born before 1950."}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.born < date('1950-01-01')\\nRETURN d\\nORDER BY 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": "List all users who have rated the same movie with different ratings."}, {"role": "assistant", "content": "MATCH (u1:User)-[r1:RATED]->(m:Movie)<-[r2:RATED]-(u2:User)\\nWHERE u1 <> u2 AND r1.rating <> r2.rating\\nRETURN u1, u2, 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 actors have acted in movies from at least three different countries?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, collect(DISTINCT m.countries) AS countries\\nWHERE size(countries) >= 3\\nRETURN a.name, countries"}]} {"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 that were asked by users with a reputation over 100000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 100000\\nRETURN q\\nORDER BY q.createdAt ASC\\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 the status 'Defaulted'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.status = 'Defaulted'\\nRETURN e\\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 of movies produced by 'Pixar Animation Studios'?"}, {"role": "assistant", "content": "MATCH (prodCompany:ProductionCompany {name: 'Pixar Animation Studios'})\\nMATCH (prodCompany)-[:PRODUCED_BY]->(movie:Movie)\\nWITH avg(movie.budget) AS averageBudget\\nRETURN averageBudget"}]} {"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 software versions that depend on 'RHEL'."}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:VERSION]->(v:Version)\\nRETURN v.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the names of the buildings whose status is \"on-hold\", in ascending order of stories."}, {"role": "assistant", "content": "MATCH (b:Building)\\nWHERE b.Status = \"on-hold\"\\nRETURN b.name\\nORDER BY b.Stories ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\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 UpdateDate and Topic?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate)-[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 languages in which the most highly rated movies were originally made?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWHERE EXISTS { (u:User)-[:RATED]->(m) \\nWHERE m.average_vote IS NOT NULL }\\nRETURN l.name AS Language, AVG(m.average_vote) AS AverageRating\\nORDER BY AverageRating 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 5 businesses that have not been reviewed yet."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE NOT exists{(b)<-[:REVIEWS]-(:Review)}\\nRETURN b\\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 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, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which classrooms are used by grade 5?"}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Grade = 5\\nRETURN DISTINCT l.Classroom"}]} {"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 for which author_id is d83c43e5b1cf398c4e549843f497694b, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.author_id = 'd83c43e5b1cf398c4e549843f497694b'\\nRETURN properties(n) AS props, r"}]} {"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 cb7bf6a30b0381c15264305ad7677b30!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = 'cb7bf6a30b0381c15264305ad7677b30'\\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 streams with the most distinct moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWITH s, COUNT(DISTINCT u) AS moderator_count\\nRETURN s.name AS stream_name, moderator_count\\nORDER BY moderator_count DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "How many addresses have zip code 197?"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.zip_postcode = \"197\"\\nRETURN count(a)"}]} {"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 tagged with 'graphql' and have a 'createdAt' date in 2018."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWHERE q.createdAt >= '2018-01-01T00:00:00Z' AND q.createdAt <= '2018-12-31T23:59:59Z'\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the company name with the number of gas station."}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(g:GasStation)\\nRETURN c.Company, count(*) AS count\\nORDER BY count DESC"}]} {"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 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. '}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\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 'fastrf_embedding' of the character named 'Jaime-Lannister'."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Jaime-Lannister'})\\nRETURN c.fastrf_embedding"}]} {"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 average discount in orders?"}, {"role": "assistant", "content": "MATCH (p:Product)-[o:ORDERS]->(:Order)\\nWITH p, AVG(toFloat(o.discount)) AS avgDiscount\\nORDER BY avgDiscount DESC\\nLIMIT 3\\nRETURN p.productName, avgDiscount"}]} {"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 distinct games played? List the top 5."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, COUNT(DISTINCT g) AS distinctGames\\nORDER BY distinctGames DESC\\nLIMIT 5\\nRETURN s.name AS streamName, distinctGames"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CarePlan\": {\n \"properties\": {\n \"frequency\": \"STRING\",\n \"type\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"room\": \"STRING\"\n }\n },\n \"MedicalRecord\": {\n \"properties\": {\n \"medication\": \"STRING\",\n \"diagnosis\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_CARE_PLAN\",\n \"to\": \"CarePlan\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_CARE_PLAN\",\n \"to\": \"CarePlan\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_MEDICAL_RECORD\",\n \"to\": \"MedicalRecord\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"HAS_MEDICAL_RECORD\",\n \"to\": \"MedicalRecord\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_CARE_PLAN\": {\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many residents are there in the facility?"}, {"role": "assistant", "content": "MATCH (r:Resident)\\nRETURN COUNT(r) AS number_of_residents"}]} {"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 benefited from filings where the originator bank was 'CIMB Bank Berhad'? Limit to top 3 results."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank = 'CIMB Bank Berhad'\\nRETURN e\\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 in the \"Adventure\" genre?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Adventure'})\\nMATCH (g)<-[:IN_GENRE]-(m:Movie)\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee."}, {"role": "assistant", "content": "MATCH (j:Journal)\\nWHERE NOT EXISTS {(j)-[:EDited_BY]->(:Editor)}\\nRETURN j.Date, j.Theme, j.Sales"}]} {"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 tweets with text containing 'critical service'."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nWHERE t.text CONTAINS 'critical service'\\nRETURN t\\nORDER BY t.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 }\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 2007 and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'2007'})-[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 \"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\\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 3 movies with the shortest runtime."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime IS NOT NULL\\nRETURN m.title, m.runtime\\nORDER BY m.runtime\\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 5 countries by the number of filings where the amount is between 100,000 and 1,000,000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS|:ORIGINATOR|:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.amount >= 100000 AND f.amount <= 1000000\\nRETURN c.name AS Country, count(f) AS FilingsCount\\nORDER BY FilingsCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the first_name for Author combined with the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.first_name AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.author_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the journal_id of the Journal and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:Author)\\nRETURN n.journal_id, m.author_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": "Which movies have actors who have also directed a movie?"}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)\\nWHERE exists{ (actor)-[:DIRECTED]->(:Movie) }\\nRETURN movie.title, actor.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 asked questions tagged with 'graphql-js' and have a reputation under 5000?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'graphql-js'})\\nWHERE u.reputation < 5000\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the category_id from Categories where either category_id is 775271e2a118257e7308fe4c21c9d0b4 or category_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '775271e2a118257e7308fe4c21c9d0b4' OR n.category_id IS NOT NULL\\nRETURN DISTINCT n.category_id AS category_id"}]} {"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 Geom. Topol!"}, {"role": "assistant", "content": "MATCH path=(:Journal {name:'Geom. Topol'})-->()\\nRETURN path"}]} {"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 services that depend on the process named '8966'?"}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})-[:DEPENDS_ON]->(s:Service)\\nRETURN s.name AS service_name, COUNT(*) AS dependency_count\\nORDER BY dependency_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 `internal_id` of entities connected to the officer with `name` \"MOSSFON SUBSCRIBERS LTD.\"."}, {"role": "assistant", "content": "MATCH (o:Officer {name: \"MOSSFON SUBSCRIBERS LTD.\"})-[:officer_of]->(e:Entity)\\nRETURN e.internal_id"}]} {"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 names, countries, and ages for every singer in descending order of age?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Name,singer.Country,singer.Age\\nORDER BY singer.Age 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 top 5 streams that have created the most chatter relationships."}, {"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 \"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 originators in the filings involving the highest amounts?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)\\nRETURN e, f.amount\\nORDER BY f.amount 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 number of words used in reviews for each category?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)<-[:IN_CATEGORY]-(b2:Business)\\nMATCH (review:Review)-[:REVIEWS]->(b2)\\nWITH c, size(split(review.text, ' ')) AS numberOfWords\\nWITH c, avg(numberOfWords) AS averageWordCount\\nRETURN c.name AS category, averageWordCount"}]} {"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.1142/S0219061301000077, and what are their relationships to DOI?"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r]-(n)\\nWHERE c.name = '10.1142/S0219061301000077'\\nRETURN properties(n) AS props, r"}]} {"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": "How many paths are there between 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 and Keyword, for which name equals super-exponential growth?"}, {"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'})-[*]->(d:Keyword{name:'super-exponential growth'})\\nRETURN count(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 \"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 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.journal_id STARTS WITH 'J' AND r.pages 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' for filings where the 'originator_iso' is 'DEU' and the 'beneficiary_iso' is 'AFG'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[]->(e:Entity)\\nWHERE f.originator_iso = 'DEU' AND f.beneficiary_iso = 'AFG'\\nRETURN avg(f.amount) AS average_amount"}]} {"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 2000 votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes > 2000\\nRETURN m.title, m.votes"}]} {"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": "Is there a path connecting Report where report_id is d4a4409b7e8a77f4894c998a04162257 and DOI, for which name is 10.1023/A:1004807104626?"}, {"role": "assistant", "content": "1004807104626?\nA: MATCH (a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'}), (b:DOI{name:'10.1023/A:1004807104626'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the themes of farm competitions sorted by year in ascending order?"}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)\\nRETURN fc.Theme\\nORDER BY fc.Year ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 specific keyword 'space' and have been released?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'space'})\\nWHERE m.status = 'Released'\\nRETURN m\\nORDER BY m.popularity 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": "What are the top 3 originator banks by the number of filings with an end date in 2012?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.end >= datetime('2012-01-01T00:00:00Z') AND f.end <= datetime('2012-12-31T23:59:59Z')\\nRETURN e.name AS OriginatorBank, count(f) AS NumberOfFilings\\nORDER BY NumberOfFilings 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 is the service provider for entities that were incorporated in 2006?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date CONTAINS '2006'\\nRETURN e.name AS entity_name, e.service_provider AS service_provider"}]} {"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 are the top 5 users with the most downVoted questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, SUM(q.downVotes) AS totalDownVotes\\nORDER BY totalDownVotes DESC\\nLIMIT 5\\nRETURN u.display_name AS user, totalDownVotes"}]} {"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: 4179 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '4179'}) -[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 \"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 'Will' has reviewed?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName"}]} {"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 me all the reviews written by the user with userId 'u1'."}, {"role": "assistant", "content": "MATCH (u:User {userId: 'u1'})-[wr:WROTE]->(r:Review)\\nRETURN 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": "Which businesses are located in Missoula and in the 'Beer' category?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.city = 'Missoula' AND c.name = 'Beer'\\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 directors have directed movies in more than three genres?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH d, count(DISTINCT g) AS genreCount\\nWHERE genreCount > 3\\nRETURN d.name AS Director, genreCount\\nORDER BY genreCount 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 = 641-672, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='641-672'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the role of the employee named Koby?"}, {"role": "assistant", "content": "MATCH (e:Employee {employee_name: \"Koby\"})-[:None]->(r:Role)\\nRETURN r.role_description"}]} {"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 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments CONTAINS '21 pages, AMS-LaTeX'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Article)\\nWHERE m.comments CONTAINS '21 pages, AMS-LaTeX'\\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 applications are instances of the software 'webapp'?"}, {"role": "assistant", "content": "MATCH (s:Software {name: 'webapp'})-[:INSTANCE]->(a:Application)\\nRETURN a.name\\nLIMIT 3"}]} {"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 2000 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2000'}]->(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 \"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 527-551 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '527-551'}]->(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 \"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 country has produced the most movies with a budget greater than 100 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nUNWIND m.countries AS country\\nWITH country, count(DISTINCT m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN country, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the location code for the country \"Canada\"?"}, {"role": "assistant", "content": "MATCH (n:RefLocation)\\nWHERE n.Location_Name = \"Canada\"\\nRETURN n.Location_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": "What are the names of the businesses reviewed by the user who wrote the review with `reviewId` 'r2'?"}, {"role": "assistant", "content": "MATCH (r:Review {reviewId: 'r2'})-[:REVIEWS]->(b:Business)\\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": "Which business in 'San Mateo' has the highest average review star rating and what are its reviews?"}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})<-[:REVIEWS]-(r:Review)\\nWITH b, avg(r.stars) AS avgRating, collect(r) AS reviews\\nORDER BY avgRating DESC\\nLIMIT 1\\nRETURN b.name AS businessName, avgRating, reviews"}]} {"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 been rated by the youngest users on average?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH m, avg(toInteger(u.userId)) AS avgUserId\\nORDER BY avgUserId ASC\\nLIMIT 3\\nRETURN m.title AS MovieTitle, avgUserId AS AverageUserId"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show card number, name, and hometown for all members in a descending order of level."}, {"role": "assistant", "content": "MATCH (Member:Member)\\nRETURN Member.Card_Number AS card_number, Member.Name AS name, Member.Hometown AS hometown\\nORDER BY Member.Level 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": "Name the routers that are in zone 1 within 'DC1' DataCenter."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Router {zone: 1})\\nRETURN r.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 'en' as their language and more than 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = 'en' AND s.total_view_count > 1000000\\nRETURN s.name AS stream_name, s.url AS stream_url, s.total_view_count AS total_views"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 highest budget movies that were released?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released'\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"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 Geom. Topol, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{name:'Geom. Topol'})-[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 \"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 563c3ceee67bbf5fc29c764b86a8c8ca!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})-[*]->(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 is the average IMDB rating of all movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"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 \"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 article_id is 604531!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.article_id='604531'\\nRETURN m.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": "How many languages are associated with streams that have over 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 1000000\\nRETURN count(distinct l) as num_languages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 persons have the most crew credits in movies released after 2010?"}, {"role": "assistant", "content": "MATCH (p:Person)-[c:CREW_FOR]->(m:Movie)\\nWHERE m.release_date > date('2010-01-01')\\nWITH p, count(c) AS crewCount\\nORDER BY crewCount DESC\\nLIMIT 3\\nRETURN p.name AS person, crewCount"}]} {"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": "What are the number of votes from state 'NY' or 'CA'?"}, {"role": "assistant", "content": "MATCH (votes:VOTES)\\nWHERE votes.state = 'NY' OR votes.state = 'CA'\\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": "Name the top 3 directors who have worked on movies with an average vote greater than 7.5."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:CREW_FOR]->(m:Movie)\\nWHERE r.job = 'Director' AND m.average_vote > 7.5\\nRETURN p.name, count(m) AS movies_directed\\nORDER BY movies_directed DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Topic with the description The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Topic {description: 'The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.description"}]} {"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 'Application' nodes running on each 'Machine'?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(a:Application)\\nWITH m, count(a) AS numApps\\nRETURN avg(numApps)"}]} {"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": "For each Article find its title 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.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 }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Author for which last_name is Polishchuk!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Polishchuk'})-[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": "Find 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"}]} {"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 three highest amounts filed by entities located in 'China'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE e.country = 'CHN'\\nRETURN f.amount AS Amount\\nORDER BY f.amount 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": "Identify all suppliers from 'Germany' who supply products in the 'Beverages' category."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWHERE s.country = 'Germany' AND c.categoryName = 'Beverages'\\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 streams have chatters who are also moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u:User)-[:MODERATOR]->(s)\\nRETURN DISTINCT s"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the course names for courses taught on MTW?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nWHERE c.Days = \"MTW\"\\nRETURN c.CName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the companies and main industries of all companies that are not headquartered in the United States?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters <> 'USA'\\nRETURN c.Main_Industry, c.Company"}]} {"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 serve as intermediaries of entities?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[:intermediary_of]->(e:Entity)\\nRETURN o, e"}]} {"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: 2007 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '2007'}) -[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 \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show station names without any trains."}, {"role": "assistant", "content": "MATCH (s:Station)\\nWHERE NOT (s)-[:SERVES]->(:Train)\\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": "Show the top 5 movies with a poster path ending in '.jpg'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path ENDS WITH '.jpg'\\nRETURN m.title, m.poster_path\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Keyword where name is uncountably many different asymptotic growth rates and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'uncountably many different asymptotic growth rates'})-[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": "List the top 5 users by number of questions they have asked."}, {"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 \"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 1-31 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 = '1-31'\\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": "List the movies that have a higher budget than \"Toy Story\"."}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})\\nWITH m.budget AS toyStoryBudget\\nMATCH (m:Movie)\\nWHERE m.budget > toyStoryBudget\\nRETURN m.title AS movieTitle"}]} {"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 time difference between the earliest and latest created questions in the database?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH min(q.createdAt) AS earliestDate, max(q.createdAt) AS latestDate\\nRETURN duration.inSeconds(earliestDate, latestDate) AS timeDifference"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the first names of all the teachers that teach in classroom 110."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.Classroom = 110\\nRETURN t.FirstName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Return the names of musicals who have the nominee Bob Fosse."}, {"role": "assistant", "content": "MATCH (n:Musical)\\nWHERE n.Nominee = \"Bob Fosse\"\\nRETURN n.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 },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the abstract 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.abstract AS abstract, count(m) AS count, COLLECT(m.name) as name\\nWHERE count > 3\\nRETURN abstract, count, name\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Author for which author_id is 700c655b31f9b9275ba10a9875c15332!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the category_id from Categories where either category_id is 0131645b590b64c1a0cf13a4fceeb000 or category_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '0131645b590b64c1a0cf13a4fceeb000' OR n.category_id IS NOT NULL\\nRETURN DISTINCT n.category_id AS category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each grade 0 classroom, report the total number of students."}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Grade = 0\\nRETURN n.Classroom, 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": "List the characters with an INTERACTS2 relationship of weight less than 20."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS2]->(:Character)\\nWHERE r.weight < 20\\nRETURN 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 movies with a revenue exceeding 100 million USD and a popularity below 10."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 100000000 AND m.popularity < 10\\nRETURN m.title AS title, m.revenue AS revenue, m.popularity AS popularity"}]} {"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": "Look for the report_id of the Report that is not related to the Article with the 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:Report), (: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. '})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.report_id"}]} {"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= 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. '})-[*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 names of users who wrote reviews before 2017."}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.date < date('2017-01-01')\\nMATCH (u:User)-[:WROTE]->(r)\\nRETURN DISTINCT u.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 with the most unique spoken languages."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nRETURN m.title AS movie, collect(DISTINCT l.name) AS languages, size(collect(DISTINCT l.name)) AS numLanguages\\nORDER BY numLanguages DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\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 Article and Categories?"}, {"role": "assistant", "content": "MATCH (a:Article)-[r]->(n), (d:Categories)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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 top 3 customers who have placed the most orders."}, {"role": "assistant", "content": "MATCH (customer:Customer)-[:PURCHASED]->(order:Order)\\nWITH customer, count(order) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 3\\nRETURN customer.customerID, orderCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which patients have had an appointment for a 'New Patient' reason and also have a chronic disease?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_APPOINTMENT]->(a:Appointment)\\nMATCH (p)-[:HAS_CHRONIC_DISEASE]->(d:Disease)\\nWHERE a.reason = 'New Patient'\\nRETURN DISTINCT p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of the regions in alphabetical order?"}, {"role": "assistant", "content": "MATCH (r:Region)\\nRETURN r.Region_name\\nORDER BY r.Region_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the specifications of the Categories, skip the first 2 records and return 2 records!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications SKIP 2\\nLIMIT 2"}]} {"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 are the names of the teachers who teach at least two courses?"}, {"role": "assistant", "content": "MATCH (T2:teacher)-[T1:course_arrange]-()\\nWITH T2.Name AS Name, count(*) AS count\\nWHERE count >= 2\\nRETURN Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many documents were shipped by USPS?"}, {"role": "assistant", "content": "MATCH (ra:RefShippingAgent)\\nWHERE ra.shipping_agent_name = \"USPS\"\\nMATCH (d:Document)\\nWHERE d.shipping_agent_code = ra.shipping_agent_code\\nRETURN count(d)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Which catalog publishers have substring \"Murray\" in their names?"}, {"role": "assistant", "content": "MATCH (c:Catalog)\\nWHERE c.catalog_publisher =~ \"(?i).*Murray.*\"\\nRETURN DISTINCT c.catalog_publisher"}]} {"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 intermediary whose status is 'SUSPENDED' and are located in 'Hong Kong'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {status: 'SUSPENDED'})-[:intermediary_of]->(e:Entity {countries: 'Hong Kong'})\\nRETURN e.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": "For each Article, find the number of Journal linked via PUBLISHED_IN where meta is 220 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 = '220'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Which major has between 2 and 30 number of students? List major and the number of students."}, {"role": "assistant", "content": "MATCH (s:Student)\\nWITH s.Major AS Major, count(*) as cnt\\nWHERE cnt >= 2 AND cnt <= 30\\nRETURN Major, cnt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_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 DOI where doi_id is f2f5ea4787de1e16c51c306e07bb740c and Journal, for which journal_id equals d3b321ed42589ea798c241aa7de23d2d?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})-[*]->(d:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})\\nRETURN count(p)"}]} {"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 1056!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 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 }\n}"}, {"role": "user", "content": "Is there a path connecting Article where title is $A_{\\infty}$-structures on an elliptic curve and 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{title:'$A_{\\infty}$-structures on an elliptic curve'}), (b: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 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": "Are there any nodes that are connected with Author where first_name is Alexander and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Alexander'})-[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 \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Report the name of all campuses in Los Angeles county."}, {"role": "assistant", "content": "MATCH (campus:Campus)\\nWHERE campus.County = \"Los Angeles\"\\nRETURN campus.Campus"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?"}, {"role": "assistant", "content": "MATCH (b:Browser)-[:USES]->(w:WebClientAccelerator)\\nWHERE b.market_share > 15\\nRETURN DISTINCT w.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": "Find the top 5 tweets with links and sort them by number of favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nRETURN t.text AS tweet_text, t.favorites AS favorites, l.url AS link_url\\nORDER BY t.favorites 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 products with unitsOnOrder greater than 30."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 30\\nRETURN 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 source ID for the Intermediary with name \"MICHAEL PAPAGEORGE, MR.\"?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: 'MICHAEL PAPAGEORGE, MR.'})\\nRETURN i.sourceID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "List the name of technicians whose team is not \"NYY\"."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE t.Team <> \"NYY\"\\nRETURN t.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 'Beverages' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Beverages'})\\nWITH p, count{(p)<-[:ORDERS]-()} AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 5\\nRETURN p.productName, ordersCount"}]} {"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 1008!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1008'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the specifications for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.specifications 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": "How many 'Service' nodes are there with the same 'name' as the 'Service' with 'pid' 1234?"}, {"role": "assistant", "content": "MATCH (s:Service {pid: 1234})\\nWITH s.name AS service_name\\nMATCH (other:Service {name: service_name})\\nRETURN count(other)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which patients have had a 'Tonsillectomy' surgery and also have a 'Peanuts' allergy?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_ALLERGY]->(a:Allergy{name: 'Peanuts'}), (p)-[:HAD_SURGERY]->(s:Surgery)-[:OF_TYPE]->(st:SurgeryType {name: 'Tonsillectomy'})\\nRETURN DISTINCT p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which teachers teach in classroom 109? Give me their last names."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.Classroom = 109\\nRETURN t.LastName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_id is 3fa3ec8100d88908b00d139dacdedb6a and UpdateDate, for which update_date is 2014-11-11?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'3fa3ec8100d88908b00d139dacdedb6a'}), (b:UpdateDate{update_date:'2014-11-11'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 2017-07-11 and traversing through Article with article_id 1052!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2017-07-11'})-[*]->(d:Article{article_id:'1052'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_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 Journal where journal_id is f6582df4742923aacfc6e67638bd4bf6 and share a common property with Report, for which report_id equals 5049b80a2935f95cc95cf14dbfb8c610?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[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 \"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 3 most common ship addresses for orders."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o.shipAddress AS address, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 3\\nRETURN address, orderCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "List all region names in alphabetical order."}, {"role": "assistant", "content": "MATCH (r:Region)\\nRETURN r.Region_name\\nORDER BY r.Region_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 are the top 5 most recent entities by incorporation date?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date IS NOT NULL\\nRETURN e.name, e.incorporation_date\\nORDER BY e.incorporation_date DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many books are there?"}, {"role": "assistant", "content": "MATCH (b:Book)\\nRETURN count(*)"}]} {"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 1069, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1069'})-[:HAS_DOI]->(c:DOI)-[r]->(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": "What is the IP address of the Interface that exposes the Port with the highest port number?"}, {"role": "assistant", "content": "MATCH (p:Port)\\nWITH p\\nORDER BY p.port DESC\\nLIMIT 1\\nMATCH (i:Interface)-[:EXPOSES]->(p)\\nRETURN i.ip"}]} {"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\\nWITH a, count(r) AS numRoles\\nORDER BY numRoles DESC\\nLIMIT 5\\nRETURN a.name AS actor, numRoles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Article with title equal to $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians that are assigned to repair machines with more point values than 70?"}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T3:Technician), (T1)-[:ASSIGNED_TO]->(T2:Machine)\\nWHERE T2.value_points > 70\\nRETURN T3.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 is the number of filings benefited by each entity, sorted in descending order of the number of filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWITH e, count(f) AS numberOfFilings\\nRETURN e.name AS entityName, numberOfFilings\\nORDER BY numberOfFilings DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "find the highest support percentage, lowest consider rate and oppose rate of all candidates."}, {"role": "assistant", "content": "MATCH (Candidate:Candidate)\\nRETURN max(Candidate.Support_rate), min(Candidate.Consider_rate), min(Candidate.Oppose_rate)"}]} {"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": "Could you please provide the title of a movie featuring 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 \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where description contains Study!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description CONTAINS 'Study'\\nRETURN n"}]} {"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 Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17;\n MPI-PhT/99-45!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17; MPI-PhT/99-45'})-[*]->(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 the names of intermediaries based in South Africa with an active status."}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nWHERE i.countries = \"South Africa\" AND i.status = \"ACTIVE\"\\nRETURN i.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 are the top 3 actors with the most diverse roles?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWITH p, r.roles AS roles\\nUNWIND roles AS role\\nWITH p, COUNT(DISTINCT role) AS uniqueRolesCount\\nRETURN p.name AS actor, uniqueRolesCount\\nORDER BY uniqueRolesCount 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 distinct values of the doi_id from DOI where doi_id is not fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id <> 'fe8768ee88f2d27ed51861639e63a4ff'\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all book categories and the number of books in each category."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN b.Category, 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 users asked questions about GraphQL subscriptions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'graphql-subscriptions'\\nRETURN u.display_name, u.id, u.link"}]} {"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 super-exponential growth and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.name = 'super-exponential growth'\\nRETURN properties(b) AS Keyword_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Which catalog content has the highest height? Give me the catalog entry name."}, {"role": "assistant", "content": "MATCH (c:CatalogContent)\\nRETURN c.catalog_entry_name\\nORDER BY c.height DESC\\nLIMIT 1"}]} {"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 11, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\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 Topic where cluster is 7 and share a common property with Author, for which last_name equals Warnaar?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'7'})-[r]->(n), (d:Author{last_name:'Warnaar'})\\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": "What are the first 5 most popular movies with a popularity score above 20?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.popularity > 20\\nRETURN m\\nORDER BY m.popularity 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 3 users have given the highest average rating to movies they've rated?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, avg(r.rating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN u.name AS userName, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where journal_id is e7b0a9b48142710ab6e87f136f6b7606 and Journal, with name equal J.Statist.Phys, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[*]-(e:Journal{name:'J.Statist.Phys'}))\\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": "List the top 5 movies with the most roles listed in ACTED_IN relationship."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(p:Person)\\nRETURN m.title AS movie, size(r.roles) AS roleCount\\nORDER BY roleCount 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": "Retrieve the first 3 filings with a beneficiary bank country of 'Singapore' and an amount greater than 200000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'Singapore' AND f.amount > 200000\\nRETURN f\\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 VIP relationship with more than three different users?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWITH s, count(DISTINCT u) AS vipCount\\nWHERE vipCount > 3\\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": "Who are the top 5 users that 'neo4j' retweets the most?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)<-[:POSTS]-(retweetedUser:User)\\nRETURN retweetedUser.screen_name AS retweeted_user, count(*) AS retweet_count\\nORDER BY retweet_count 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 gap between their release date and the current date?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, duration.inDays(date(m.release_date), date()) AS days_since_release\\nRETURN m.title, m.release_date, days_since_release\\nORDER BY days_since_release 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": "Retrieve the first 3 beneficiary banks located in 'United Kingdom'."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country {name: 'United Kingdom'})\\nRETURN e.name AS BeneficiaryBank\\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 have been reviewed by users named 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName"}]} {"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-01')\\nRETURN l.name AS language, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Topology_5 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:Topic{label:'Topology_5'})-[*]-(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 \"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 = 131-170, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='131-170'\\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": "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.title, m.runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the industry shared by the most companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Industry AS Industry, COUNT(c) AS count\\nORDER BY count DESC\\nRETURN Industry\\nLIMIT 1"}]} {"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 5 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 > 5\\nRETURN n.description AS description, n.cluster AS cluster\\nORDER BY cluster 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": "What is the total amount of filings where the originator bank country is the same as the country of the entity that filed the filing?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nMATCH (f)-[:ORIGINATOR]->(originator:Entity)-[:COUNTRY]->(originatorCountry:Country)\\nMATCH (f)<-[:FILED]-(filer:Entity)-[:COUNTRY]->(filerCountry:Country)\\nWHERE originatorCountry.code = filerCountry.code\\nRETURN sum(f.amount) AS totalAmount"}]} {"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 SISSA: 39/99/FM/GEO, with their relationship types and count these types!"}, {"role": "assistant", "content": "39/99/FM/GEO, with their relationship types and count these types!\nA: MATCH (a:Report{report_no:'SISSA: 39/99/FM/GEO'})-[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 \"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 share the same address as other entities."}, {"role": "assistant", "content": "MATCH (e1:Entity)-[:registered_address]->(a:Address)<-[:registered_address]-(e2:Entity)\\nWHERE e1.node_id <> e2.node_id\\nRETURN e1, a, e2"}]} {"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 that have been flagged as answered and have at least 1 favorite."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true AND q.favorites >= 1\\nRETURN q\\nORDER BY q.createdAt 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": "What are the top 3 originator banks in terms of the total amount of filings they initiated?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWITH e.name AS originator_bank, SUM(f.amount) AS total_amount\\nORDER BY total_amount DESC\\nLIMIT 3\\nRETURN originator_bank, total_amount"}]} {"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 most languages?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, size(m.languages) AS num_languages\\nORDER BY num_languages DESC\\nRETURN m.title, num_languages\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many campuses are there in Los Angeles county?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.County = \"Los Angeles\"\\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": "What is the date and time of the most recent tweet that mentions a user followed by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (n:User {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nWITH followed\\nMATCH (tweet:Tweet)-[:MENTIONS]->(followed)\\nRETURN max(tweet.created_at) AS most_recent_tweet_date"}]} {"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": "Find nodes that are at the end of a path starting at Author where last_name is Burnol and traversing through Journal with journal_id ebe5bed51965553359ee9f13db0293e1!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Burnol'})-[*]->(d:Journal{journal_id:'ebe5bed51965553359ee9f13db0293e1'})-[*]->(n)\\nRETURN n"}]} {"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}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where title is Failure of Brown representability in derived categories and traversing through Keyword with name exponentially growing!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Failure of Brown representability in derived categories'})-[*]->(d:Keyword{name:'exponentially growing'})-[*]->(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": "What is the maximum `book1BetweennessCentrality` among characters with `community` 579?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 579\\nRETURN max(c.book1BetweennessCentrality)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of people of each sex who have a weight higher than 85."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.Weight > 85\\nRETURN count(*), p.Sex"}]} {"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 involved in the heaviest INTERACTS2 relationship."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2]->(c2:Character)\\nRETURN c1, c2, r.weight AS weight\\nORDER BY r.weight DESC\\nLIMIT 1"}]} {"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 Swans!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no CONTAINS 'Swans'\\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 \"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 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, through Journal via PUBLISHED_IN with year 2002?"}, {"role": "assistant", "content": "MATCH (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. '})-[:PUBLISHED_IN {year: '2002'}]->(c:Journal)-[r]->(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": "Find the questions that have the same number of upvotes and downvotes."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.upVotes = q.downVotes\\nRETURN q.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": "Show top 5 entities with addresses in 'Hong Kong'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE a.countries = 'Hong Kong'\\nRETURN e.name AS entity_name, a.address AS entity_address\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and ages of editors?"}, {"role": "assistant", "content": "MATCH (e:Editor)\\nRETURN e.Name, e.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": "Who are the first 5 users who have moderated streams with descriptions mentioning 'professional'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE s.description CONTAINS 'professional'\\nRETURN u.name\\nORDER BY s.createdAt\\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 with the lowest `book1PageRank` who interact with \"Stevron-Frey\" in any book."}, {"role": "assistant", "content": "MATCH (target:Character {name: \"Stevron-Frey\"})\\nMATCH (target)-[:INTERACTS*1..5]-(other)\\nWITH other, other.book1PageRank AS pageRank\\nRETURN other.name, pageRank\\nORDER BY pageRank ASC\\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": "List entities that are connected to officers named 'KIM SOO IN'."}, {"role": "assistant", "content": "MATCH (o:Officer {name: 'KIM SOO IN'})-[:officer_of]->(e:Entity)\\nRETURN e.name AS entity_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 `companyName` and total number of products supplied by suppliers who supply only one product."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, count(p) AS productCount\\nWHERE productCount = 1\\nRETURN s.companyName, productCount"}]} {"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 games played by streams with more than 5000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.followers > 5000\\nRETURN g.name AS game, count(*) AS stream_count\\nORDER BY stream_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_no is Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17;\n MPI-PhT/99-45 and DOI, for which doi_id is 563c3ceee67bbf5fc29c764b86a8c8ca?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17; MPI-PhT/99-45'}), (b:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})\\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": "Find the Topic where label contains Topol!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label CONTAINS 'Topol'\\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 users who have asked a question with no upVotes or downVotes."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.upVotes = 0 AND q.downVotes = 0\\nRETURN u.display_name, u.id, u.link"}]} {"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 suppliers by number of products supplied?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, COUNT(p) AS productCount\\nORDER BY productCount DESC\\nLIMIT 5\\nRETURN s.companyName AS supplierName, 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": "Find the people who have followed someone with the same birth year."}, {"role": "assistant", "content": "MATCH (p1:Person)-[:FOLLOWS]->(p2:Person)\\nWHERE p1.born = p2.born\\nRETURN p1, p2"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of departments either in division AS, or in division EN and in building NEB?"}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Division = \"AS\" OR (d.Division = \"EN\" AND d.Building = \"NEB\")\\nRETURN DISTINCT d.DName"}]} {"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 businesses with an average rating higher than 4.5."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, avg(r.stars) AS average_rating\\nWHERE average_rating > 4.5\\nMATCH (u)-[:WROTE]->(r2:Review)-[:REVIEWS]->(b:Business)\\nRETURN DISTINCT b.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 languages are used by streams that have at least one chatter who is also a VIP for another stream?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u:User)-[:CHATTER]->(other:Stream)<-[:VIP]-(u)\\nWITH s\\nMATCH (s)-[:HAS_LANGUAGE]->(l:Language)\\nRETURN DISTINCT l.name AS language"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 company has produced the most number of movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(p:ProductionCompany)\\nWITH p.name AS productionCompanyName, count(m) AS numMovies\\nORDER BY numMovies DESC\\nRETURN productionCompanyName, numMovies\\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 by the number of originator banks they have."}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)<-[:ORIGINATOR]-(f:Filing)\\nWITH c.name AS country, COUNT(DISTINCT e.id) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 3\\nRETURN country, originator_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of editors that are on the committee of journals with sales bigger than 3000."}, {"role": "assistant", "content": "MATCH (T1:Journal)-[:EDited_BY]->(T2:Editor)\\nWHERE T1.Sales > 3000\\nRETURN T2.Name"}]} {"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 HU-IAS/K-8, DPSU-99-8, RIMS-1266!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})-[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 \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Keyword where name is population dynamics and DOI, with name equal 10.1142/S0219061301000077, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{name:'population dynamics'})-[*]-(e:DOI{name:'10.1142/S0219061301000077'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which papers' first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"? Give me the titles of the papers."}, {"role": "assistant", "content": "MATCH (a:Authorhip)-[:WRITES]->(p:Paper), (a:Authorhip)-[:WRITTEN_BY]->(au:Author), (a:Authorhip)-[:AFFILIATED_WITH]->(i:Inst)\\nWHERE i.country = \"Japan\" AND a.authOrder = 1 AND au.lname = \"Ohori\"\\nRETURN p.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Sort all the industries in descending order of the count of companies in each industry"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Industry AS Industry, COUNT(*) AS count\\nORDER BY count DESC\\nRETURN Industry"}]} {"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 Summation and transformation formulas for elliptic hypergeometric series!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.title = 'Summation and transformation formulas for elliptic hypergeometric series'\\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": "List the movies that have been filmed in IMAX and have a revenue greater than 500 million."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 500000000\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Keyword that is not related to the Article with the article_id 1015!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Article {article_id: '1015'})\\nWHERE NOT (n) --> (:Article)\\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 original titles of movies that have been translated to Spanish?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language {name: 'Spanish'})\\nRETURN m.original_title AS OriginalTitle"}]} {"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 'Speed Racer' and what was their rating?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie {title: 'Speed Racer'})\\nRETURN p.name AS reviewer, r.rating AS rating"}]} {"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 last_name is Warnaar or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Warnaar' 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": "Find all movies that have been rated exactly 5 times."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE count{(u:User)-[:RATED]->(m)} = 5\\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": "Which 3 streams have the least followers but are associated with a game with more than 100,000 total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE g.name IS NOT NULL\\nWITH s, sum(s.total_view_count) AS game_views\\nWHERE game_views > 100000\\nRETURN s.name AS stream_name, s.followers AS follower_count\\nORDER BY follower_count\\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": "For each stadium, how many concerts play there?"}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWITH T2.Name AS Name, count(T1.Stadium_ID) AS count\\nRETURN Name,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the first names of students in room 108?"}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Classroom = 108\\nRETURN n.FirstName"}]} {"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": "\"show movie gone with the wind\""}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Gone with the Wind\"})\\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": "List the first 3 movies that Keanu Reeves has acted in with their release years."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Keanu Reeves'})-[:ACTED_IN]->(m:Movie)\\nRETURN m.title AS movie, m.released AS year\\nORDER BY m.released\\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 is the average `freight` cost of orders shipped to 'France'?"}, {"role": "assistant", "content": "MATCH (o:Order { shipCountry: 'France' })\\nWITH avg(toFloat(o.freight)) AS averageFreight\\nRETURN averageFreight"}]} {"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 5145 and are PUBLISHED_IN linked to Journal, where meta is 220?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'5145'})-[r:PUBLISHED_IN {meta :'220'}]->(b:Journal)\\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": "List the top 5 filings where the originator bank's country is 'Singapore'."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country {name: 'Singapore'})\\nRETURN f\\nORDER BY f.amount 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": "How many streams have a total view count that is less than their number of followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count < s.followers\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of editors of age either 24 or 25."}, {"role": "assistant", "content": "MATCH (e:Editor)\\nWHERE e.Age = 24 OR e.Age = 25\\nRETURN e.Name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Adult\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 some movie examples in this dataset with available language information?\""}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN m.title, l.name\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "How many calendar items do we have?"}, {"role": "assistant", "content": "MATCH (c:RefCalendar)\\nRETURN count(c) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "How many storms had death records?"}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE s.Number_Deaths > 0\\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 have chatters who have less than 1000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWHERE u.followers < 1000\\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": "What are the top 5 reviews written in the year 2016?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date >= date('2016-01-01') AND r.date <= date('2016-12-31')\\nRETURN r.reviewId AS reviewId, r.text AS text, r.stars AS stars, r.date AS date, u.name AS userName, b.name AS businessName\\nORDER BY r.stars DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the ids, names and market shares of all browsers."}, {"role": "assistant", "content": "MATCH (b:Browser)\\nRETURN b.id, b.name, b.market_share"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the status of the city that has hosted the most competitions?"}, {"role": "assistant", "content": "MATCH (c:City)<-[:TAKES_PLACE_IN]-(fc:Farm_competition)\\nWITH c, count(fc) AS counter\\nORDER BY counter DESC\\nLIMIT 1\\nRETURN c.Status"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "How many actors are there?"}, {"role": "assistant", "content": "MATCH (n:Actor)\\nRETURN count(*)"}]} {"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": "How many paths are there between Author where last_name is Warnaar and Report, for which report_no equals SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint\n No. 73?"}, {"role": "assistant", "content": "MATCH p=(a:Author{last_name:'Warnaar'})-[*]->(d:Report{report_no:'SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint No. 73'})\\nRETURN count(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 ordered by the number of reviews they have received."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(review:Review)\\nWITH b, count(review) AS reviewCount\\nRETURN b.name AS businessName, reviewCount\\nORDER BY reviewCount DESC"}]} {"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": "Which nodes have a common property with Article where title is Geometrical Tools for Quantum Euclidean Spaces and are PUBLISHED_IN linked to Journal, where pages is 521-554?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Geometrical Tools for Quantum Euclidean Spaces'})-[r:PUBLISHED_IN {pages :'521-554'}]->(b:Journal)\\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 is the total number of filings where the originator bank is located in the same country as the filer organization?"}, {"role": "assistant", "content": "MATCH (f:Filing)<-[:FILED]-(e:Entity)\\nWHERE f.originator_bank_country = e.country\\nWITH count(*) AS totalFilings\\nRETURN totalFilings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses opened before 1800?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year < 1800\\nRETURN c.Campus"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 most controversial adult films based on their overview."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.overview IS NOT NULL\\nRETURN a.title, a.overview\\nORDER BY size(a.overview) 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": "List the profile URLs of the top 3 users by betweenness."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.betweenness IS NOT NULL\\nRETURN u.profile_image_url\\nORDER BY u.betweenness 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 first 3 movies with the highest box office revenue of all time."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m\\nORDER BY m.revenue DESC\\nLIMIT 3\\nRETURN m.title, m.revenue"}]} {"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 A Boolean function of n bits is balanced if it takes the value 1 with\nprobability 1/2. We exhibit a balanced Boolean function with a randomized\nevaluation procedure (with probability 0 of making a mistake) so that on\nuniformly random inputs, no input bit is read with probability more than\nTheta(n^{-1/2} sqrt{log n}). We give a balanced monotone Boolean function for\nwhich the corresponding probability is Theta(n^{-1/3} log n). We then show that\nfor any randomized algorithm for evaluating a balanced Boolean function, when\nthe input bits are uniformly random, there is some input bit that is read with\nprobability at least Theta(n^{-1/2}). For balanced monotone Boolean functions,\nthere is some input bit that is read with probability at least Theta(n^{-1/3}).\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' A Boolean function of n bits is balanced if it takes the value 1 with probability 1/2. We exhibit a balanced Boolean function with a randomized evaluation procedure (with probability 0 of making a mistake) so that on uniformly random inputs, no input bit is read with probability more than Theta(n^{-1/2} sqrt{log n}). We give a balanced monotone Boolean function for which the corresponding probability is Theta(n^{-1/3} log n). We then show that for any randomized algorithm for evaluating a balanced Boolean function, when the input bits are uniformly random, there is some input bit that is read with probability at least Theta(n^{-1/2}). For balanced monotone Boolean functions, there is some input bit that is read with probability at least Theta(n^{-1/3}). '}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\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": "Find all products that have the same supplier as 'Chai'."}, {"role": "assistant", "content": "MATCH (p:Product {productName: 'Chai'})-[:SUPPLIES]-(s:Supplier)\\nMATCH (s)-[:SUPPLIES]-(otherProducts:Product)\\nRETURN DISTINCT otherProducts.productName"}]} {"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 nlin.SI, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'nlin.SI'})-[*]->(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": "What is the average number of followers for users who are moderators of streams that have \"en\" as their language?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nWITH s\\nMATCH (s)<-[:MODERATOR]-(u:User)\\nRETURN avg(u.followers)"}]} {"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 3082 and PUBLISHED_IN has meta on 222!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '222'}]->(m)\\nWHERE n.article_id='3082'\\nRETURN m.journal_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 favorites for tweets that mention both \"Neo4j\" and a hashtag?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: \"Neo4j\"}), (t)-[:TAGS]->(:Hashtag)\\nWITH avg(t.favorites) AS average_favorites\\nRETURN average_favorites"}]} {"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": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\"."}, {"role": "assistant", "content": "MATCH (cartoon:Cartoon)\\nWHERE cartoon.Directed_by = 'Ben Jones' OR cartoon.Directed_by = 'Brandon Vietti'\\nRETURN cartoon.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": "Find the three countries with the most originator banks in the filings."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c, count(DISTINCT e) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 3\\nRETURN c.name AS country_name, originator_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 top 5 oldest movies in the database."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all update_date for UpdateDate that have update_date in 2020!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE date(n.update_date).year = 2020\\nRETURN n.update_date"}]} {"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 c95a6da6fb331984f198feec0b0bb1a5, along with the type of their relationship with Keyword!"}, {"role": "assistant", "content": "MATCH (d:Keyword)-[r]->(n)\\nWHERE d.key_id CONTAINS 'c95a6da6fb331984f198feec0b0bb1a5'\\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": "Which 3 suppliers supply the most products?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, COUNT(p) AS productCount\\nORDER BY productCount DESC\\nLIMIT 3\\nRETURN s.companyName AS supplierName, productCount"}]} {"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 that have interacted in 'book 3' with a relationship weight of exactly 95."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS3]->(c2:Character)\\nWHERE r.weight = 95\\nRETURN c1.name AS Character1, c2.name AS Character2"}]} {"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 1013!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1013'})-->()\\nRETURN path"}]} {"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 diverse range of product categories?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category)\\nWITH c, COUNT(DISTINCT cat.categoryID) AS diversity\\nORDER BY diversity DESC\\nLIMIT 3\\nRETURN c.companyName, diversity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report for which report_id is 5049b80a2935f95cc95cf14dbfb8c610, and what are their relationships to Report?"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r]-(n)\\nWHERE c.report_id = '5049b80a2935f95cc95cf14dbfb8c610'\\nRETURN properties(n) AS props, r"}]} {"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": "Find nodes that are at the end of a path starting at Author where affiliation is Ohio State University and traversing through Topic with label Topology_5!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Ohio State University'})-[*]->(d:Topic{label:'Topology_5'})-[*]->(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 reviews for businesses located on 'W Broadway St'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.address CONTAINS 'W Broadway St'\\nRETURN b.name AS businessName, r.text AS reviewText, r.stars AS reviewStars, r.date AS reviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the abstract for Article!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.abstract 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": "Which 3 products have the largest quantity per unit in the 'Condiments' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Condiments'})\\nRETURN p.productName, p.quantityPerUnit\\nORDER BY p.quantityPerUnit 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 \"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 227!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '227'\\nRETURN n.article_id AS article_id, 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 movies have the most keywords associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN m.title, count(k) AS keyword_count\\nORDER BY keyword_count DESC\\nLIMIT 3"}]} {"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 5!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'5'})-[*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 by 'neo4j' contain the hashtag 'education'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN t"}]} {"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 'curvylliptic.bsky.social'?"}, {"role": "assistant", "content": "MATCH (u:User {label: 'curvylliptic.bsky.social'})-[:INTERACTED]->(interactedUser:User)\\nRETURN interactedUser"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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.title, m.popularity"}]} {"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 have a common property with Article where article_id is 1006 and are PUBLISHED_IN linked to Journal, where pages is 479-502?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1006'})-[r:PUBLISHED_IN {pages :'479-502'}]->(b:Journal)\\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 \"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 222 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '222'}]->(m:Journal)\\nWHERE m.title < 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": "Find the users who asked the questions with the most tags."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWITH q, COUNT(t) AS tagCount\\nORDER BY tagCount DESC\\nLIMIT 1\\nMATCH (u:User)-[:ASKED]->(q)\\nRETURN u.display_name AS userName, q.title AS questionTitle, tagCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of all the catalog entries."}, {"role": "assistant", "content": "MATCH (c:CatalogContent)\\nRETURN distinct(c.catalog_entry_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 movie has the highest revenue in the \"Action\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Action'})\\nWITH m\\nORDER BY m.revenue DESC\\nLIMIT 1\\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": "List the first 3 directors who died after 2000."}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.died > date('2000-01-01')\\nRETURN d.name, d.died\\nORDER BY d.died\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"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 title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[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 \"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": "Fetch comments 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.comments AS comments"}]} {"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 both chatters and VIPs of the same stream?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nMATCH (s)-[:CHATTER]->(c:User)\\nMATCH (s)-[:VIP]->(v:User)\\nWHERE c = v\\nWITH DISTINCT c\\nRETURN count(c) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Keyword for which key_id=0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Author that has author_id 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH path=(:Author {author_id:'788db042978edbbfc654927e23ac21d1'})-->()\\nRETURN path"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Give the phones for departments in room 268."}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Room = \"268\"\\nRETURN d.DPhone"}]} {"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 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 5\\nRETURN c.categoryName, productCount"}]} {"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 VIPs in the stream with the most followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers IS NOT NULL\\nWITH s\\nORDER BY s.followers DESC\\nLIMIT 1\\nMATCH (u:User)-[:VIP]->(s)\\nRETURN u.name\\nORDER BY u.followers 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 is the date of the review with the highest star rating for 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})\\nWITH b\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWITH max(r.stars) AS max_stars\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars = max_stars\\nRETURN r.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": "Which 3 keywords are most frequently associated with movies having a budget over $200 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE m.budget > 200000000\\nRETURN k.name AS keyword, COUNT(*) AS frequency\\nORDER BY frequency 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 actors have voiced characters in animated movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nMATCH (p:Person)-[c:CAST_FOR]->(m)\\nWHERE c.character IS NOT NULL\\nRETURN DISTINCT p.name AS actor_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 businesses that have reviews mentioning 'sandwich'."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'sandwich'\\nRETURN b.name, b.address, b.city, b.state\\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 `louvain` value of characters in `community` 584?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 584\\nRETURN avg(c.louvain)"}]} {"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": "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 year 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.year IS NOT NULL\\nRETURN n.journal_id"}]} {"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}"}, {"role": "user", "content": "Look for the title of the Article that is not related to the Author with the last_name Burnol!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {last_name: 'Burnol'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the distinct hometowns of gymnasts with total points more than 57.5?"}, {"role": "assistant", "content": "MATCH (T1:Gymnast)\\nWHERE T1.Total_Points > 57.5\\nMATCH (T2:Person {People_ID: T1.Gymnast_ID})\\nRETURN DISTINCT T2.Hometown"}]} {"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 2007-05-23!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2007-05-23'})-[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 \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the specifications of the Categories that is not related to the Report with the report_id 3fa3ec8100d88908b00d139dacdedb6a!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Report {report_id: '3fa3ec8100d88908b00d139dacdedb6a'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.specifications"}]} {"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 key_id or key_id contains c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id CONTAINS 'c95a6da6fb331984f198feec0b0bb1a5'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Keyword)\\nWHERE m.key_id CONTAINS 'c95a6da6fb331984f198feec0b0bb1a5'\\nRETURN m AS node"}]} {"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 highest 'weight' of interactions between characters in community 735 in any book?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r]->(c2:Character)\\nWHERE c1.community = 735 AND c2.community = 735\\nWITH max(r.weight) AS maxWeight\\nRETURN maxWeight"}]} {"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 pair of users reply to each other's tweets most often?\""}, {"role": "assistant", "content": "MATCH (u1:User)-[:POSTS]->(t1:Tweet)-[:REPLY_TO]->(t2:Tweet)<-[:POSTS]-(u2:User)\\nWHERE u1 <> u2\\nRETURN u1.screen_name AS User1, u2.screen_name AS User2, COUNT(*) AS Replies\\nORDER BY Replies 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 \"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: 1048 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '1048'}) -[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 \"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 youngest people who have written a movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(:Movie)\\nRETURN p.name, p.born\\nORDER BY p.born DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments is 16 pages; minor changes in the introduction to make it more\n accessible to both Math and CS readers and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'16 pages; minor changes in the introduction to make it more accessible to both Math and CS readers'})-[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 \"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 fce69ad0112a3426c57a0582a2b8620f!"}, {"role": "assistant", "content": "MATCH path=(:Journal {journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-->()\\nRETURN path"}]} {"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 with a fastrf_embedding value containing a number greater than 1.0."}, {"role": "assistant", "content": "MATCH (c:Character)\\nUNWIND c.fastrf_embedding AS embedding\\nWITH c, embedding\\nWHERE embedding > 1.0\\nRETURN DISTINCT 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": "What are the descriptions of streams that are moderated by users with names starting with 'c'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWHERE u.name STARTS WITH 'c'\\nRETURN s.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "What is the first name of the author with last name \"Ueno\"?"}, {"role": "assistant", "content": "MATCH (a:Author)\\nWHERE a.lname = \"Ueno\"\\nRETURN a.fname"}]} {"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": "List singer names and number of concerts for each singer."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)\\nWITH T2.name AS name, count(T2.singer_id) AS count\\nRETURN name,count"}]} {"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 f76!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id STARTS WITH 'f76'\\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 with the tag 'aws-lambda' and a score greater than -1."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWHERE q.score > -1\\nRETURN q.text"}]} {"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": "What are the properties of Journal that is PUBLISHED_IN connected to Article that has article_id equal to 4179?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWHERE n.article_id = 4179\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "How many document types are there?"}, {"role": "assistant", "content": "MATCH (n:RefDocumentType)\\nRETURN count(*) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\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 Journal where name is Journal of Mathematical Logic and Article, for which comments is 19 pages, AMSLatex, references added?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'}), (b:Article{comments:'19 pages, AMSLatex, references added'})\\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": "Which three movies have the highest difference in revenue and budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NOT NULL AND m.budget IS NOT NULL\\nRETURN m.title, m.revenue, m.budget, (m.revenue - m.budget) AS profit\\nORDER BY profit DESC\\nLIMIT 3"}]} {"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_{\\infty}$-structures on an elliptic curve, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which headquarter locations are used by more than 2 companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters IS NOT NULL\\nWITH c.Headquarters AS Headquarters, COUNT(*) AS count\\nWHERE count > 2\\nRETURN Headquarters"}]} {"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 oldest review in the dataset?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nRETURN min(r.date) AS oldestReviewDate"}]} {"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 the most number of movies in a single year?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, m.year AS year, count(m) AS movies_count\\nORDER BY movies_count DESC\\nRETURN d.name, year, movies_count\\nLIMIT 3"}]} {"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 18 pages, latex2e with amsfonts. Final version, accepted for\n publication!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments <> '18 pages, latex2e with amsfonts. Final version, accepted for publication'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What is the full name of the instructor who has a course named COMPUTER LITERACY?"}, {"role": "assistant", "content": "MATCH (t1:Course)-[:TAUGHT_BY]->(t2:Faculty)\\nWHERE t1.CName = \"COMPUTER LITERACY\"\\nRETURN t2.Fname, t2.Lname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments equal to Only one change to previous version: ref. [62] misnumbering was fixed\n on request to the cited author, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'Only one change to previous version: ref. [62] misnumbering was fixed on request to the cited author'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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=e7b0a9b48142710ab6e87f136f6b7606!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 interacted with 'Walder-Rivers' in 'book 45'? List first 3 characters."}, {"role": "assistant", "content": "MATCH (c:Character)-[:INTERACTS45]->(target:Character {name: 'Walder-Rivers'})\\nRETURN c.name\\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 been struck off on '15-FEB-2013'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date = '15-FEB-2013'\\nRETURN e.name AS entity_name, e.struck_off_date AS struck_off_date"}]} {"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 where doi_id is ee4af8f04acefe1036a78a4436691f55, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})-[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 \"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 Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17;\n MPI-PhT/99-45!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17; MPI-PhT/99-45'})-[r]->()\\nRETURN 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 \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the category_id for Categories combined with the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.category_id AS Records\\nUNION ALL\\nMATCH (m:Topic)\\nRETURN m.description AS Records"}]} {"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 cluster is not 5!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster <> '5'\\nRETURN DISTINCT n.label AS label"}]} {"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_codes 'WSM' and a registered address with the country_codes 'WSM'."}, {"role": "assistant", "content": "MATCH (e:Entity)<-[:officer_of]-(o:Officer)\\nWHERE o.country_codes = 'WSM'\\nMATCH (e)-[:registered_address]->(a:Address)\\nWHERE a.country_codes = 'WSM'\\nRETURN DISTINCT e"}]} {"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": "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: 2007 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '2007'}) -[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 \"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 976d319b0a2961b44db9ef9e43ea5039!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'976d319b0a2961b44db9ef9e43ea5039'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names and main services for train stations that have the top three total number of passengers."}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN s.Name, s.Main_Services\\nORDER BY s.Total_Passengers 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 user has reviewed 'Zootown Brew' and what was the star rating?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {name: 'Zootown Brew'})\\nRETURN u.name AS userName, r.stars AS starRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Environment\": {\n \"properties\": {\n \"unit\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Sensor\": {\n \"properties\": {\n \"location\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Pollutant\": {\n \"properties\": {\n \"description\": \"STRING\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Sensor\",\n \"type\": \"MEASURES\",\n \"to\": \"Environment\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"MEASURES\",\n \"to\": \"Environment\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"DETECTS\",\n \"to\": \"Pollutant\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"DETECTS\",\n \"to\": \"Pollutant\"\n }\n ],\n \"relationshipProperties\": {\n \"MEASURES\": {\n \"value\": \"INTEGER\",\n \"date\": \"STRING\"\n },\n \"DETECTS\": {\n \"value\": \"INTEGER\",\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "On which date was the highest level of SO2 detected and by which sensor?"}, {"role": "assistant", "content": "MATCH (s:Sensor)-[d:DETECTS]->(p:Pollutant {name: 'SO2'})\\nRETURN d.date AS date, s.name AS sensor\\nORDER BY d.value DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which author_id is a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'})-[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": "How many 'Software' nodes have a 'Version' with 'name' \"7.1\"?"}, {"role": "assistant", "content": "MATCH (s:Software)-[:VERSION]->(v:Version {name: \"7.1\"})\\nWITH DISTINCT s\\nRETURN count(s)"}]} {"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 J.Diff.Eq, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J.Diff.Eq'})-[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 \"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 are at the end of a path starting from Article, with abstract equal to 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, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a: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]->(c:Categories)-[r]->(n)\\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 \"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 1048, through Journal via PUBLISHED_IN with year 2004?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1048'})-[:PUBLISHED_IN {year: '2004'}]->(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 all directors who have directed a movie in the 'Sci-Fi' genre."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Sci-Fi'})\\nRETURN d"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the last names of faculty in building Barton, sorted by last name?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Building = \"Barton\"\\nRETURN f.Lname\\nORDER BY f.Lname"}]} {"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 by number of followers?"}, {"role": "assistant", "content": "MATCH (actor:Person)-[:ACTED_IN]->(:Movie)\\nOPTIONAL MATCH (follower:Person)-[:FOLLOWS]->(actor)\\nWITH actor, COUNT(follower) AS followerCount\\nRETURN actor.name AS actorName, followerCount\\nORDER BY followerCount DESC\\nLIMIT 3"}]} {"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": "How many paths are there between Journal where journal_id is 904b65f98bb6823aaf3f72721984560a and Author, for which last_name equals Chakrabarti?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{journal_id:'904b65f98bb6823aaf3f72721984560a'})-[*]->(d:Author{last_name:'Chakrabarti'})\\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": "Which top 5 movies have been rated by more than 500,000 users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, count(u) AS userCount\\nWHERE userCount > 500000\\nRETURN m\\nORDER BY userCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the doi_id and the name for those DOI where doi_id starts with f!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id STARTS WITH 'f'\\nRETURN n.doi_id AS doi_id, n.name AS name"}]} {"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": "Look for the category_id of the Categories that is not related to the Journal with the name J. Number Theory!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Journal {name: 'J. Number Theory'})\\nWHERE NOT (n) --> (:Journal)\\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": "What are the top 3 languages spoken in movies that have a revenue greater than $100 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.revenue > 100000000\\nRETURN l.name, COUNT(*) AS movie_count\\nORDER BY movie_count 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": "List the first 3 Interfaces routed by Egress 'DC1-RE'."}, {"role": "assistant", "content": "MATCH (e:Egress {name: 'DC1-RE'})-[:ROUTES]->(i:Interface)\\nRETURN i\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"airlines\": {\n \"properties\": {\n \"uid\": \"STRING\",\n \"airline\": \"STRING\",\n \"abbreviation\": \"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": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?"}, {"role": "assistant", "content": "MATCH (T1:flights)-[]-(T2:airports)-[]-(T3:airports)\\nWHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'\\nRETURN 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 \"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 Superselection Theory for Subsystems and are PUBLISHED_IN linked to Journal, where year is 2001?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Superselection Theory for Subsystems'})-[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 \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the district with the smallest area?"}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Area ASC\\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 top 5 streams that have the most number of languages associated."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nRETURN s.name AS stream, count(l) AS num_languages\\nORDER BY num_languages 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 filings have a beneficiary bank in 'United Kingdom' and an amount greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.amount > 1000000\\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 top 5 directors who have directed the most movies with a runtime under 90 minutes?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.runtime < 90\\nWITH d, count(m) AS moviesDirected\\nORDER BY moviesDirected DESC\\nLIMIT 5\\nRETURN d.name, moviesDirected"}]} {"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 ab!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id =~'ab.*'\\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": "What's 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 \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Return the hosts of competitions for which the theme is not Aliens?"}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)\\nWHERE fc.Theme <> 'Aliens'\\nRETURN fc.Hosts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the id of the employee named Ebba."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.Employee_Name = \"Ebba\"\\nRETURN e.Employee_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": "How many filings are there with an originator bank from 'Singapore' and a beneficiary bank from 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = 'Singapore' AND f.beneficiary_bank_country = 'United Kingdom'\\nRETURN count(f) AS number_of_filings"}]} {"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, size(collect(distinct m.countries)) AS numCountries\\nORDER BY numCountries DESC\\nLIMIT 3\\nRETURN d.name AS director, numCountries AS numberOfCountries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many events are there?"}, {"role": "assistant", "content": "MATCH (e:Event)\\nRETURN count(e)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Return the different statuses of cities, ascending by frequency."}, {"role": "assistant", "content": "MATCH (c:City)\\nWITH c.Status AS status, COUNT(*) AS count\\nRETURN status\\nORDER BY count 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": "What are the names of the first 3 games played by streams that have a URL ending in 'itsbigchase'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.url ENDS WITH 'itsbigchase'\\nRETURN g.name\\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": "Who are the beneficiaries in Filings that have an originator bank from 'Angola'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank_country = 'Angola'\\nRETURN e.name AS beneficiary"}]} {"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 were shot in more than five different locations."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE size(m.countries) > 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": "Find the top 5 users who asked questions most recently."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u, q.createdAt AS QuestionDate\\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 movies have both high revenue (over 500 million USD) and high imdbRating (above 8.0)?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 500000000 AND m.imdbRating > 8.0\\nRETURN m.title AS MovieTitle, m.revenue AS Revenue, m.imdbRating AS IMDbRating"}]} {"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 d3b321ed42589ea798c241aa7de23d2d!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id <> 'd3b321ed42589ea798c241aa7de23d2d'\\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": "Which 3 users have written a review on 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Neo4j'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN u.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": "List the top 3 movies with the lowest imdbVotes released after 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year > 2000 AND m.imdbVotes IS NOT NULL\\nRETURN m\\nORDER BY m.imdbVotes 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": "Find all movies that have a tagline containing the word \"love\"."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'love'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of editors and the theme of journals for which they serve on committees."}, {"role": "assistant", "content": "MATCH (j:Journal)-[:EDited_BY]->(e:Editor)\\nRETURN e.Name, j.Theme"}]} {"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 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 their properties!"}, {"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]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show names of technicians and series of machines they are assigned to repair."}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T3:Technician), (T1)-[:ASSIGNED_TO]->(T2:Machine)\\nRETURN T3.Name, T2.Machine_series"}]} {"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 filed by entities in 'China'?"}, {"role": "assistant", "content": "MATCH (c:Country {name: 'China'})<-[:COUNTRY]-(e:Entity)-[:FILED]->(f:Filing)\\nRETURN SUM(f.amount) AS total_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 users who are moderators in the most number of streams with an 'en' language setup."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nWITH u, count(s) AS moderated_streams\\nORDER BY moderated_streams DESC\\nLIMIT 5\\nRETURN u.name, moderated_streams"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find all the papers published by the institution \"Google\"."}, {"role": "assistant", "content": "MATCH (a:Authorhip)-[:WRITES]->(p:Paper), (a:Authorhip)-[:WRITTEN_BY]->(au:Author), (a:Authorhip)-[:AFFILIATED_WITH]->(i:Inst)\\nWHERE i.name = \"Google\"\\nRETURN DISTINCT p.title"}]} {"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 01c710839626aa78f11824682bccef1b and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '01c710839626aa78f11824682bccef1b'\\nRETURN properties(b) AS DOI_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": "List the nodes that are connected to Keyword for which name is gain, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'gain'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\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 connected to Article, but not to Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (c:Article)-[r]-(n)\\nWHERE NOT (n)-[:PUBLISHED_IN]-(:Journal)\\nRETURN labels(n)"}]} {"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 e, skip the first 2 records and return the next 2 records of doi_id!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id STARTS WITH 'e'\\nWITH n.doi_id AS doi_id SKIP 2\\nLIMIT 2\\nRETURN 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": "Retrieve the first 3 filings where the beneficiary bank country is 'United Kingdom' and the beneficiary iso is 'GBR'."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.beneficiary_iso = 'GBR'\\nRETURN f\\nORDER BY f.begin\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the teams with the most technicians?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWITH t.Team AS Team, COUNT(*) AS count\\nRETURN Team\\nORDER BY count DESC\\nLIMIT 1"}]} {"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 a95ff40457bf3cae9c6852c6a14937fa, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})-[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 }\n}"}, {"role": "user", "content": "Retrieve the DOI where doi_id or doi_id contains 6ecd77a291d325cb3e01160880d88c69!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id CONTAINS '6ecd77a291d325cb3e01160880d88c69'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.doi_id CONTAINS '6ecd77a291d325cb3e01160880d88c69'\\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": "Find all games played by streams that have at least one VIP who is also a chatter in a stream that belongs to a team created before 2018."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)-[:CHATTER]->(s)\\nMATCH (s)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2018-01-01T00:00:00Z')\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many stadiums are not in country \"Russia\"?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nWHERE s.Country <> \"Russia\"\\nRETURN count(*)"}]} {"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": "How is the math course described?"}, {"role": "assistant", "content": "MATCH (courses:Courses)\\nWHERE courses.course_name = 'math'\\nRETURN courses.course_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of companies whose headquarters are not \"USA\"?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters <> 'USA'\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Report that has report_no none provided!"}, {"role": "assistant", "content": "MATCH path=(:Report {report_no:'none provided'})-->()\\nRETURN path"}]} {"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 interacted with 'Jaime-Lannister' in 'INTERACTS45' relationship."}, {"role": "assistant", "content": "MATCH (jaime:Character { name: 'Jaime-Lannister' })-[:INTERACTS45]->(other)\\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": "What are the top 5 movies with the most revenue that are in the 'Sci-Fi' genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Sci-Fi'})\\nWHERE m.revenue IS NOT NULL\\nRETURN m.title, m.revenue\\nORDER BY m.revenue 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": "Identify entities and their corresponding officers that have been connected since 1999."}, {"role": "assistant", "content": "MATCH (e:Entity)-[r:officer_of]->(o:Officer)\\nWHERE r.start_date <= '1999'\\nRETURN e, r, o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 most budget-efficient adult films (highest revenue to budget ratio)?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.budget > 0 AND a.revenue > 0\\nRETURN a.title, a.revenue, a.budget, (a.revenue / a.budget) AS efficiency\\nORDER BY efficiency 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 \"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 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.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Topic for which cluster=4!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'4'})-[*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": "What is the name of the person who directed 'The Matrix'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie {title: 'The Matrix'})\\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": "Which 3 keywords are most common in movies with an average vote below 5?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE m.average_vote < 5\\nWITH k, count(*) as count\\nORDER BY count DESC\\nLIMIT 3\\nRETURN k.name AS keyword, count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of report_no and report_id from Report where report_no does not start with H!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE NOT n.report_no STARTS WITH 'H'\\nRETURN DISTINCT n.report_no AS report_no, n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Please show the most common publication date."}, {"role": "assistant", "content": "MATCH (p:Publication)\\nWITH p.Publication_Date AS Publication_Date, COUNT(*) AS count\\nRETURN Publication_Date\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Categories for which specifications is math.CA!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.CA'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 character with the name 'Aegon-V-Targaryen' and return their community value."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Aegon-V-Targaryen'})\\nRETURN c.community"}]} {"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 521-554 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 = '521-554'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY 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 6 or cluster is less than 10!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 6 OR n.cluster < 10\\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": "Which people have both acted in and reviewed the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[a:ACTED_IN]->(m:Movie)<-[r:REVIEWED]-(p)\\nRETURN p.name, m.title, a.roles, r.summary, r.rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the comments for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"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 author_id is fd6fcf9374c7e5fd0377800da5e8f846 or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = 'fd6fcf9374c7e5fd0377800da5e8f846' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campus has the most faculties in 2003?"}, {"role": "assistant", "content": "MATCH (c:Campus)<-[:TEACHES]-(f:Faculty)\\nWHERE f.Year = 2003\\nRETURN c.Campus\\nORDER BY f.Faculty DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the document status description of the document with id 1?"}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_id = 1\\nMATCH (ds:RefDocumentStatu)\\nWHERE ds.document_status_code = d.document_status_code\\nRETURN ds.document_status_description\\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 movies have a revenue greater than their budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > m.budget\\nRETURN m.title AS MovieTitle, m.revenue AS Revenue, m.budget AS Budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the article_id for Article combined with the update_date for UpdateDate, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.article_id AS Records\\nUNION\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are all the role codes, role names, and role descriptions?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN r.Role_Code AS role_code, r.Role_Name AS role_name, r.Role_Description AS role_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 is the average IMDb rating of movies based on Shakespearean plays?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE toLower(m.plot) CONTAINS \"shakespeare\"\\nRETURN avg(m.imdbRating) AS 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": "List the top 5 movies with the smallest budgets that have an imdbRating over 7.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating > 7.0\\nRETURN m.title, m.budget, m.imdbRating\\nORDER BY m.budget 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 3 production companies have produced movies in more than 3 different languages?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH pc, count(DISTINCT l) AS languages_count\\nWHERE languages_count > 3\\nRETURN pc.name, languages_count\\nORDER BY languages_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Return the characters for actors, ordered by age descending."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Character\\nORDER BY a.age 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": "Which interfaces are routed by the egress \"DC1-RE\"?"}, {"role": "assistant", "content": "MATCH (egress:Egress {name: \"DC1-RE\"})-[:ROUTES]->(interface:Interface)\\nRETURN interface"}]} {"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 3 questions with the most severe negative score (lowest score)."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score < 0\\nRETURN q.title, q.score, q.link\\nORDER BY q.score ASC\\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 top 5 movies with the least votes and their release years?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title AS title, m.released AS release_year, m.votes AS votes\\nORDER BY m.votes ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node 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.'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which doctors have a patient who has both 'High Blood Pressure' and 'Diabetes'?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_CHRONIC_DISEASE]->(d1:Disease), (p)-[:HAS_CHRONIC_DISEASE]->(d2:Disease)\\nWHERE d1.name = 'Asthma' AND d2.name = 'Diabetes'\\nWITH DISTINCT p\\nMATCH (p)-[:HAS_DOCTOR]->(d:Doctor)\\nRETURN d.name as doctorName"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the last names of faculties in building Barton in alphabetic order."}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Building = \"Barton\"\\nRETURN f.Lname\\nORDER BY f.Lname"}]} {"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": "Display all products with 'unitsOnOrder' greater than 20."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 20\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\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 cluster is 10 and Author, for which last_name equals Burnol?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'10'})-[*]->(d:Author{last_name:'Burnol'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of regions that were not affected?"}, {"role": "assistant", "content": "MATCH (r:Region)\\nWHERE NOT (r)-[:AFFECTS]-(:Storm)\\nRETURN r.Region_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 games are played by the oldest streams in the database?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.createdAt IS NOT NULL\\nRETURN g.name AS Game, s.createdAt AS StreamCreationDate\\nORDER BY s.createdAt ASC\\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": "Can you find any officers linked to the entity 'TIANSHENG INDUSTRY AND TRADING CO., LTD.'?"}, {"role": "assistant", "content": "MATCH (e:Entity {name: 'TIANSHENG INDUSTRY AND TRADING CO., LTD.'})-[:officer_of]->(o:Officer)\\nRETURN o"}]} {"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 quantity of products ordered per order?"}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH o, sum(r.quantity) AS totalQuantityPerOrder\\nRETURN avg(totalQuantityPerOrder) AS averageQuantityPerOrder"}]} {"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 an IMDb rating and were released in the year 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating IS NOT NULL AND m.year = 2000\\nRETURN m.title AS title, m.imdbRating AS imdbRating, m.released AS released"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from DOI with doi_id equal to 563c3ceee67bbf5fc29c764b86a8c8ca!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\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 UpdateDate where update_date is 2008-01-29 and traversing through Journal with name Journal of Mathematical Logic!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2008-01-29'})-[*]->(d:Journal{name:'Journal of Mathematical Logic'})-[*]->(n)\\nRETURN n"}]} {"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": "Return the abstract for Article combined with the category_id for Categories!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.abstract AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.category_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Journal and Report?"}, {"role": "assistant", "content": "MATCH (a:Journal)-[r]->(n), (d:Report)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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": "Which businesses have a rating of 3.5 or higher?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars >= 3.5\\nRETURN DISTINCT b.name, b.address, b.city, b.state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 with a budget of exactly 30 million."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget = 30000000\\nRETURN m.title\\nLIMIT 3"}]} {"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 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, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e: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. '})-[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 \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What is the attribute data type of the attribute with name \"Green\"?"}, {"role": "assistant", "content": "MATCH (a:AttributeDefinition)\\nWHERE a.attribute_name = \"Green\"\\nRETURN a.attribute_data_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": "Which 3 movies have a production company named 'Lucasfilm' associated with them?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany {name: 'Lucasfilm'})<-[:PRODUCED_BY]-(m:Movie)\\nRETURN m.title\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"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 a7193c11b0713ccfbb34c90cf18d3e5f, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are all of the products whose name includes the substring \"Scanner\"?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.Product CONTAINS \"Scanner\"\\nRETURN p.Product"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Give the average number of working horses on farms with more than 5000 total horses."}, {"role": "assistant", "content": "MATCH (f:Farm)\\nWHERE f.Total_Horses > 5000\\nRETURN avg(f.Working_Horses)"}]} {"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 been rated exactly 5 times by users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, COUNT(u) AS ratingCount\\nWHERE ratingCount = 5\\nRETURN m.title AS MovieTitle, ratingCount\\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 a runtime longer than 180 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 180\\nRETURN m.title AS MovieTitle, m.runtime AS 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": "What are the total view counts for streams that have moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE exists{(s)-[:MODERATOR]->()}\\nRETURN sum(s.total_view_count) AS totalViewCountForModeratedStreams"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the location code, the starting date and ending data in that location for all the documents."}, {"role": "assistant", "content": "MATCH (dl:DocumentLocation)\\nRETURN dl.Location_Code, dl.Date_in_Location_From, dl.Date_in_Locaton_To"}]} {"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 where the originator bank is 'Barclays Bank Plc'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank = 'Barclays Bank Plc'\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 3\\nRETURN e.name, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of people who have a height greater than 200 or less than 190?"}, {"role": "assistant", "content": "MATCH (Person:Person)\\nWHERE Person.Height > 200 OR Person.Height < 190\\nRETURN Person.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "List the most common result of the musicals."}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWITH m.Result as Result, count(m) as count\\nORDER BY count DESC return Result limit 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 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\\nORDER BY m.imdbRating 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": "What is the sum of the sizes of users who 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\\nWITH u1.size AS interactingUserSize\\nRETURN sum(interactingUserSize) AS totalSize"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the dates on which more than one revisions were made."}, {"role": "assistant", "content": "MATCH (c:Catalog)\\nWITH c.date_of_latest_revision as date, count(*) as count\\nWHERE count > 1\\nRETURN 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": "what is the name and nation of the singer who have a song having 'Hey' in its name?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Song_Name =~'.*[H|h]ey.*'\\nRETURN singer.Name,singer.Country"}]} {"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 247!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '247'\\nRETURN n.comments AS comments, 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": "What are the first 3 packages with the highest price?"}, {"role": "assistant", "content": "MATCH (p:Package)\\nRETURN p\\nORDER BY p.price 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 characters with the lowest 'book45PageRank' values who interacted with \"Aemon-Targaryen-(Maester-Aemon)\" in book 45."}, {"role": "assistant", "content": "MATCH (target:Character {name: \"Aemon-Targaryen-(Maester-Aemon)\"})\\nMATCH (target)-[:INTERACTS45]->(other:Character)\\nWITH other\\nORDER BY other.book45PageRank ASC\\nLIMIT 10\\nRETURN other.name AS character_name, other.book45PageRank AS page_rank"}]} {"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": "Calculate the average journal_id 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.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Report that has report_no JNMP 4/2002 (Letter)!"}, {"role": "assistant", "content": "MATCH path=(:Report {report_no:'JNMP 4/2002 (Letter)'})-->()\\nRETURN path"}]} {"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 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 or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.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. ' OR n.title IS NOT NULL\\nRETURN DISTINCT n.title AS 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": "List the characters whose name starts with 'A'."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.name STARTS WITH 'A'\\nRETURN 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": "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, c2.name, r.weight"}]} {"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": "\"provide all possible paths (Node Tags -Relationship Names->Node Tags) connecting IP adresses to exposed ports \""}, {"role": "assistant", "content": "MATCH path=(interface:Interface)-[:EXPOSES]->(port:Port)\\nRETURN path"}]} {"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 in the year 1996?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.orderDate STARTS WITH '1996'\\nRETURN o.orderID AS orderID, o.orderDate AS orderDate"}]} {"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 has the most businesses in Missoula?"}, {"role": "assistant", "content": "MATCH (b:Business {city: \"Missoula\"})-[:IN_CATEGORY]->(c:Category)\\nWITH c, count(b) AS businessCount\\nORDER BY businessCount DESC\\nRETURN c.name AS category, businessCount\\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 top 3 categories available for businesses?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nRETURN c.name, count(b) AS num_businesses\\nORDER BY num_businesses DESC\\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 article_id is not 1056!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1056'\\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 directors were born in the USA?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.bornIn = \"USA\"\\nRETURN d.name, d.born, d.died, d.url, d.imdbId, d.tmdbId"}]} {"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 `categoryName` with the highest total quantity of units ordered?"}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName as categoryName, sum(o.quantity) as totalQuantity\\nRETURN categoryName, max(totalQuantity) AS maxTotalQuantity"}]} {"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 (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE exists { \\nMATCH (a)-[:DIRECTED]->(m2:Movie) }\\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": "List the first 3 actors who have acted in movies with a revenue of over 500 million USD."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.revenue > 500000000\\nRETURN a.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "How many regions were affected by each storm?"}, {"role": "assistant", "content": "MATCH (s:Storm)-[:AFFECTS]->(r:Region)\\nRETURN s.Name, 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": "What are the 3 newest relationships formed in the graph (any type)?"}, {"role": "assistant", "content": "MATCH ()-[r]-()\\nRETURN r, type(r)\\nORDER BY id(r) DESC\\nLIMIT 3"}]} {"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": "Please show the most common citizenship of singers."}, {"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": "List all movies produced by 'Pixar Animation Studios'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Pixar Animation Studios'})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What is the duration of the oldest actor?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Duration\\nORDER BY a.Age DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the names of companies in descending order of market value."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.name\\nORDER BY c.Market_Value_billion DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which last_name is Dunajski, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{last_name:'Dunajski'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to DOI where name contains 10.1142/S0219061301000077, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.name CONTAINS '10.1142/S0219061301000077'\\nRETURN n, TYPE(r)"}]} {"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 stadium name and capacity with most number of concerts in year 2014 or after."}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWHERE T1.year >= 2014\\nWITH T2.name AS name, T2.capacity AS capacity, count(T2.stadium_id) AS count\\nRETURN name,capacity\\nORDER BY count DESC\\nLIMIT 1"}]} {"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 name, country, age for all singers ordered by age from the oldest to the youngest."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Name,singer.Country,singer.Age\\nORDER BY singer.Age DESC"}]} {"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 in the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category {categoryName: \"Seafood\"})\\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 \"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: 31 pages, LaTex and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '31 pages, LaTex'}) -[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 \"Author\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Author and Article, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*]-(n)-[*]-(b:Article)\\nRETURN labels(n)"}]} {"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 2 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 > 2\\nRETURN n.description AS description, n.cluster AS cluster\\nORDER BY cluster DESC"}]} {"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 Alexander!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Alexander'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.author_id CONTAINS 'Alexander'\\nRETURN m AS node"}]} {"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 0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.key_id='0e45607b74a52b79f39c242abf265272'\\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": "List the first 3 genres that have more than 50 movies associated with them."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\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 \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who follows David?"}, {"role": "assistant", "content": "MATCH (u:User)<-[:FOLLOWS]-(follower:User)\\nWHERE u.name = \"David\"\\nRETURN follower.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"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_no is JNMP 4/2002 (Letter) and Categories, with category_id equal 33657234da1dc070ea09e7c31bb86abb, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_no:'JNMP 4/2002 (Letter)'})-[*]-(e:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'}))\\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": "Which Filings involve Entities that are linked to the 'CHN' country code?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS|:ORIGINATOR|:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country {code: 'CHN'})\\nRETURN f"}]} {"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\\nORDER BY m.released DESC\\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 4969a8e0646cdb8842726781e7637625!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.key_id = '4969a8e0646cdb8842726781e7637625'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find the list of page size which have more than 3 product listed"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p.max_page_size AS max_page_size, COUNT(*) AS count\\nWHERE count > 3\\nRETURN DISTINCT max_page_size"}]} {"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": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has comments 28 pages latex; v4 major revision, much more detail to proofs, added\n material on intersections of Cantor sets!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '28 pages latex; v4 major revision, much more detail to proofs, added material on intersections of Cantor sets'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\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": "List the top 5 questions with the most favorites that were asked by users with a reputation under 50000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation < 50000\\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": "Name 3 people who have the most combined roles across all their ACTED_IN movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[a:ACTED_IN]->(m:Movie)\\nWITH p, sum(size(a.roles)) AS totalRoles\\nORDER BY totalRoles DESC\\nLIMIT 3\\nRETURN p.name AS PersonName, totalRoles"}]} {"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": "Are there any nodes that are connected with Keyword where key_id is d2d74b47b149d8090871a2f33e80809b and share a common property with DOI, for which name equals 10.1016/S0393-0440(00)00003-6?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[r]->(n), (d:DOI{name:'10.1016/S0393-0440(00)00003-6'})\\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 languages are used by streams with a total view count over 10 million, listing the first 3?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 10000000\\nRETURN l.name AS language\\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 community value of the character with the name 'Walder-Rivers'?"}, {"role": "assistant", "content": "MATCH (c:Character {name: \"Walder-Rivers\"})\\nRETURN c.community"}]} {"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 9!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.cluster = '9'\\nRETURN properties(n) AS props"}]} {"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 for which name is uncountably many different asymptotic growth rates, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.name = 'uncountably many different asymptotic growth rates'\\nRETURN properties(n) AS props, r"}]} {"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 A New Cohomology Theory for Orbifold!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'A New Cohomology Theory for Orbifold'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'j'\\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": "Find the tweets posted by \"Neo4j\" that contain links."}, {"role": "assistant", "content": "MATCH (u:User {name: \"Neo4j\"})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Keyword where name or name contains population dynamics!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name CONTAINS 'population dynamics'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Keyword)\\nWHERE m.name CONTAINS 'population dynamics'\\nRETURN m AS node"}]} {"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=J. Daniel!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'J. Daniel'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the name of the swimmer who has at least 2 records."}, {"role": "assistant", "content": "MATCH (s:Swimmer)-[:COMPETES_IN]->(e:Event)\\nWITH s.name AS name, count(*) AS count\\nWHERE count >= 2\\nRETURN name"}]} {"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 Failure of Brown representability in derived categories or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Failure of Brown representability in derived categories' 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": "Find the 3 oldest movies reviewed by someone born after 1970."}, {"role": "assistant", "content": "MATCH (p:Person)-[:REVIEWED]->(m:Movie)\\nWHERE p.born > 1970\\nRETURN m\\nORDER BY m.released 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": "Which users have asked questions that have not received any upvotes and limit the results to the first 3?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.upVotes = 0\\nRETURN u\\nLIMIT 3"}]} {"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 44 pages!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments <> '44 pages'\\nRETURN DISTINCT n.abstract AS 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 3 genres in videos that have a runtime less than 30 minutes."}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre)\\nWHERE v.runtime < 30\\nRETURN g.name AS genre, COUNT(v) AS video_count\\nORDER BY video_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": "List the distinct 'originator_bank_id' values for filings where the 'beneficiary_bank_id' is \"azizi-bank-kabul-afghanistan-afg\"."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_id = \"azizi-bank-kabul-afghanistan-afg\"\\nRETURN DISTINCT f.originator_bank_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 top 5 streams by total view count that also have a team?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(:Team)\\nRETURN s.name AS stream_name, s.total_view_count AS view_count\\nORDER BY s.total_view_count 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": "What are the names of entities that filed a filing with an amount greater than 1,000,000? Limit to first 3 results."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.amount > 1000000\\nRETURN e.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": "Which businesses have received reviews that indicate a change in quality over time?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars >= 4\\nWITH b, count(r) AS positiveReviews\\nMATCH (b)<-[:REVIEWS]-(r2:Review)\\nWHERE r2.stars <= 3\\nWITH b, positiveReviews, count(r2) AS negativeReviews\\nWHERE positiveReviews > 0 AND negativeReviews > 0\\nRETURN b.name AS businessName, positiveReviews, negativeReviews\\nORDER BY positiveReviews DESC, negativeReviews 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": "Which top 5 movies have the most diverse range of spoken languages?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.languages, size(m.languages) AS num_languages\\nORDER BY num_languages 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 top 5 teams with the highest average number of followers per stream."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH t, avg(s.followers) AS averageFollowers\\nORDER BY averageFollowers DESC\\nLIMIT 5\\nRETURN t.name AS teamName, averageFollowers"}]} {"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": "How many paths are there between Author where affiliation is unspecified and Categories, for which category_id equals eea477d68b70c3a05be12567240033ef?"}, {"role": "assistant", "content": "MATCH p=(a:Author{affiliation:'unspecified'})-[*]->(d:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})\\nRETURN count(p)"}]} {"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: 6150 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '6150'}) -[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 \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 mentioning 'love'."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.tagline CONTAINS 'love'\\nRETURN a\\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": "Show the first 3 tweets that 'Me' has retweeted."}, {"role": "assistant", "content": "MATCH (me:Me)-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)\\nRETURN original\\nORDER BY original.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": "What is the average revenue generated by movies belonging to the \"Toy Story Collection\"?"}, {"role": "assistant", "content": "MATCH (c:Collection)\\nWHERE c.name = \"Toy Story Collection\"\\nMATCH (c)<-[:IN_COLLECTION]-(m:Movie)\\nWITH avg(m.revenue) AS averageRevenue\\nRETURN averageRevenue"}]} {"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 ( Port Chelsea )\": \"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 degree summary name that has the most number of students enrolled?"}, {"role": "assistant", "content": "MATCH (T1:Degree_Programs)-[]-(T2:Student_Enrolment)\\nWITH T1, count(T1.degree_summary_name) AS cnt\\nRETURN T1.degree_summary_name\\nORDER BY cnt 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": "How many users have interacted with users with a color of '#FF4500'?"}, {"role": "assistant", "content": "MATCH (u:User {color: '#FF4500'})<-[:INTERACTED]-(interactedUser:User)\\nRETURN count(DISTINCT interactedUser)"}]} {"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 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: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 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": "Identify three officers with addresses registered in the Bahamas."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:registered_address]->(a:Address)\\nWHERE a.countries = \"Bahamas\"\\nRETURN o.name, a.address\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of different affected regions."}, {"role": "assistant", "content": "MATCH (s:Storm)-[r:AFFECTS]->(n:Region)\\nWITH count(DISTINCT n.Region_id) AS count\\nRETURN count\\nORDER BY count DESC"}]} {"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": "List pairs of the owner's first name and the dogs's name."}, {"role": "assistant", "content": "MATCH (T1:Owners)-[]-(T2:Dogs)\\nRETURN T1.first_name,T2.name"}]} {"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": "Look for the label of the Topic that is not related to the Author with the last_name Polishchuk!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Author {last_name: 'Polishchuk'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 10 Categories that have the category_id recorded and return these values!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id IS NOT NULL\\nRETURN n.category_id\\nLIMIT 10"}]} {"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 Math. Ann, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.name = 'Math. Ann'\\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": "What is the maximum `weight` of the `INTERACTS` relationship between characters with a `louvain` value of 0?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE c1.louvain = 0 AND c2.louvain = 0\\nRETURN max(r.weight)"}]} {"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 products that have a quantityPerUnit of '10 boxes x 20 bags'?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.quantityPerUnit = '10 boxes x 20 bags'\\nRETURN p.productName AS productName"}]} {"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 563c3ceee67bbf5fc29c764b86a8c8ca, and what are their relationships to DOI?"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r]-(n)\\nWHERE c.doi_id = '563c3ceee67bbf5fc29c764b86a8c8ca'\\nRETURN properties(n) AS props, 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 name of the application that is running on the machine that is located in the data center \"DC1\" and has the type \"xs\"?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(rack:Rack)-[:HOLDS]->(machine:Machine)\\nMATCH (machine)-[:TYPE]->(type:Type {type: 'xs'})\\nMATCH (machine)-[:RUNS]->(app:Application)\\nRETURN app.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 tagged with the keyword 'jealousy'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'jealousy'})\\nRETURN m.title AS MovieTitle"}]} {"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": "How many paths are there between Journal where name is Math. Ann and Report, for which report_id equals 3fa3ec8100d88908b00d139dacdedb6a?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{name:'Math. Ann'})-[*]->(d:Report{report_id:'3fa3ec8100d88908b00d139dacdedb6a'})\\nRETURN count(p)"}]} {"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 ( Little Lever Urban District )\": \"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 are the names of the teachers who are aged either 32 or 33?"}, {"role": "assistant", "content": "MATCH (teacher:teacher)\\nWHERE teacher.Age = '32' OR teacher.Age = '33'\\nRETURN teacher.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 is the department name for an article from department 1774?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:FROM_DEPARTMENT]->(d:Department {departmentNo: 1774})\\nRETURN d.departmentName"}]} {"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 where category_id is eea477d68b70c3a05be12567240033ef, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[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 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, 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 }\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 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, passing through DOI via HAS_DOI?"}, {"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. '})-[:HAS_DOI]->(c:DOI)-[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": "What are the first 3 genres of movies that have been directed by directors born after 1980?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE d.born > date(\"1980-01-01\")\\nRETURN DISTINCT g.name\\nORDER BY g.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": "What are the top 5 streams by followers that play the game 'Dota 2'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Dota 2'})\\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": "Who are the first three actors who acted in more than three movies with a tagline containing the word 'limit'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.tagline CONTAINS 'limit'\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 3\\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": "List the top 5 movies that were released in the '90s."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released STARTS WITH '199'\\nRETURN m.title, m.released, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"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 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 Author, with first_name equal J. Daniel, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((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. '})-[*]-(e:Author{first_name:'J. Daniel'}))\\nRETURN nodes(p)"}]} {"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 dd0a54fea06e7b7a384741aac9313d65!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"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 Report where report_id is 45009bf7f2e3f4f275de6d92deab7b27 and share a common property with UpdateDate, for which update_date equals 2018-11-28?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[r]->(n), (d:UpdateDate{update_date:'2018-11-28'})\\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 7!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.author_id STARTS WITH '7'\\nRETURN DISTINCT n.author_id AS author_id, n.affiliation AS affiliation"}]} {"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 contactName of the supplier that supplies the product with productName equal to 'Chang'?"}, {"role": "assistant", "content": "MATCH (p:Product {productName: 'Chang'})<-[:SUPPLIES]-(s:Supplier)\\nRETURN s.contactName"}]} {"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 the first 5 users who have interacted with users with a color of '#FF4500'?"}, {"role": "assistant", "content": "MATCH (u:User {color: '#FF4500'})<-[:INTERACTED]-(other:User)\\nWITH other\\nLIMIT 5\\nWITH avg(other.y) AS average_y\\nRETURN average_y"}]} {"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 for 'Ducky's Car Wash' and its reviews."}, {"role": "assistant", "content": "MATCH (b:Business {name: \"Ducky's Car Wash\"})-[:IN_CATEGORY]->(c:Category)\\nMATCH (b)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN c.name AS Category, r AS Review, u.name AS User"}]} {"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 tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water-, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 languages that are most frequently used as the original language in movies."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWITH l.name AS language, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5\\nRETURN language, movie_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Report that have the report_no recorded!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no IS NOT NULL\\nRETURN count(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 Applications are running on the 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 \"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 1013, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1013'})-[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 \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "What is the most recent post?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:CREATED]->(p:Post)\\nRETURN p.content AS content\\nORDER BY r.timestamp 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 production companies that produced videos with zero revenue?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE v.revenue = 0\\nRETURN pc\\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 top 5 discontinued products with the highest unit prices."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = true\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice 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 most common genre among movies released in 2014?"}, {"role": "assistant", "content": "MATCH (m:Movie {year: 2014})-[:IN_GENRE]->(g:Genre)\\nWITH g.name AS genre, count(*) AS movieCount\\nORDER BY movieCount DESC\\nRETURN genre\\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 have a community number exactly 795?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 795\\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": "List the 3 streams with the most distinct users as VIPs."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWITH s, COUNT(DISTINCT u) AS vip_count\\nORDER BY vip_count DESC\\nLIMIT 3\\nRETURN s.name AS stream_name, vip_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 movies in the Toy Story Collection."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: \"Toy Story Collection\"})\\nRETURN m\\nORDER BY m.release_date\\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 versions associated with the software 'RHEL'?"}, {"role": "assistant", "content": "MATCH (software:Software {name: 'RHEL'})-[:VERSION]->(version:Version)\\nWITH count(DISTINCT version) AS totalVersions\\nRETURN totalVersions"}]} {"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 linked to the most filings where the beneficiary bank country is 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 5\\nRETURN e, filingsCount"}]} {"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 with the shortest duration between 'begin' and 'end'."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f, duration.between(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 AS Duration"}]} {"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 placed the order with the earliest 'orderDate'."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH min(o.orderDate) AS earliestOrderDate\\nMATCH (o:Order {orderDate: earliestOrderDate})-[p:PURCHASED]-(c:Customer)\\nRETURN c.customerID, c.companyName"}]} {"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 IP addresses of all interfaces that are connected to switches in rack 1."}, {"role": "assistant", "content": "MATCH (r:Rack {rack: 1}) -[:HOLDS]->(s:Switch) -[:ROUTES]->(i:Interface)\\nRETURN DISTINCT i.ip"}]} {"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": "How many paths are there between Author where author_id is f6bcab8e721fbec0f293fee49d73c9c4 and Keyword, for which name equals exponentially growing?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*]->(d:Keyword{name:'exponentially growing'})\\nRETURN count(p)"}]} {"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 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, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (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. '})-[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 \"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 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: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'})-[*2]->(n)\\nRETURN DISTINCT properties(n) 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": "Who are the first 5 moderators in streams that play 'VALORANT'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'VALORANT'})\\nMATCH (s)-[:MODERATOR]->(m:User)\\nRETURN m.name AS moderator\\nORDER BY m.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Keyword that is not related to the Categories with the category_id f2012d79fe17f02edc7542435cc04510!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Categories {category_id: 'f2012d79fe17f02edc7542435cc04510'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.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 produced, directed, and acted in the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE exists{(p)-[:PRODUCED]->(:Movie)} AND exists{(p)-[:DIRECTED]->(:Movie)} AND exists{(p)-[:ACTED_IN]->(:Movie)}\\nWITH p, count{(p)-[:PRODUCED]->(:Movie)} AS producedCount, count{(p)-[:DIRECTED]->(:Movie)} AS directedCount, count{(p)-[:ACTED_IN]->(:Movie)} AS actedInCount\\nRETURN p.name, producedCount, directedCount, actedInCount\\nORDER BY producedCount + directedCount + actedInCount 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 2007-05-23, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2007-05-23'})-[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 \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of book clubs."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN count(b)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Give me all the distinct location codes for documents."}, {"role": "assistant", "content": "MATCH (n:DocumentLocation)\\nRETURN DISTINCT n.Location_Code"}]} {"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": "Describe the relationship between article 856300001 and article 812683015."}, {"role": "assistant", "content": "MATCH (a1:Article {articleId: 856300001})-[r:CUSTOMERS_ALSO_LIKE]-(a2:Article {articleId: 812683015})\\nRETURN r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal for which name starts with J. !"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name STARTS WITH 'J. '\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the publisher that has published the most books."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWITH b.Publisher as publisher, count(b) as cnt\\nORDER BY cnt DESC\\nLIMIT 1\\nRETURN publisher"}]} {"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 are at the end of a path starting from Article, where article_id is 2204, through Journal via PUBLISHED_IN with meta 217?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'2204'})-[:PUBLISHED_IN {meta: '217'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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 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]->()\\nRETURN 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": "What is the maximum unitsOnOrder for products within the 'Confections' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Confections'})\\nRETURN MAX(p.unitsOnOrder) AS MaxUnitsOnOrder"}]} {"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": "Retrieve the description for Topic that is linked through a HAS_TOPIC relationship with the Keyword where name is layer-by-layer growth!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='layer-by-layer growth'\\nRETURN m.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": "Find all customers who have placed orders that include products from both the 'Confections' category and a supplier from 'Sweden'."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Confections'}), (o:Order)-[:ORDERS]->(p)\\nWITH collect(DISTINCT o.orderID) AS confectionOrders\\nMATCH (s:Supplier {country: 'Sweden'})-[:SUPPLIES]->(p:Product), (o:Order)-[:ORDERS]->(p)\\nWITH confectionOrders, collect(DISTINCT o.orderID) AS swedishOrders\\nWITH [orderId IN confectionOrders\\nWHERE orderId IN swedishOrders] AS commonOrders\\nUNWIND commonOrders AS orderId\\nMATCH (cust:Customer)-[:PURCHASED]->(o:Order {orderID: orderId})\\nRETURN DISTINCT cust.companyName"}]} {"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 Hong Kong?"}, {"role": "assistant", "content": "MATCH (entity:Entity)-[:registered_address]->(address:Address)\\nWHERE address.countries = \"Hong Kong\"\\nRETURN count(DISTINCT entity) AS numberOfEntities"}]} {"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: 1008 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '1008'}) -[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": "List the top 3 customers by the number of orders placed."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\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 \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Author with last_name equal to Dunajski!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.last_name = 'Dunajski'\\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": "Which users have written reviews for businesses with a businessId containing the number \"2\"?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.businessId CONTAINS '2'\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nMATCH (r)<-[:WROTE]-(u:User)\\nRETURN DISTINCT u.name"}]} {"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 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 (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. '})-[*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": "Show the top 5 users who have asked the most questions with a negative score."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score < 0\\nWITH u, count(q) AS numNegativeScoreQuestions\\nORDER BY numNegativeScoreQuestions DESC\\nLIMIT 5\\nRETURN u.display_name, numNegativeScoreQuestions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the name and assets of each company, sorted in ascending order of company name?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.name, c.Assets_billion\\nORDER BY c.name ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Topic and Topic!"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r1]-(n)-[r2]->(d:Topic)\\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": "What is the maximum `number` value in filings where the `originator_bank` is \"Deutsche Bank AG\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank = \"Deutsche Bank AG\"\\nWITH max(f.number) AS max_number\\nRETURN max_number"}]} {"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 with the most complex role lists in the 'ACTED_IN' relationship."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(:Person)\\nWITH m, size(r.roles) AS role_count\\nORDER BY role_count DESC\\nLIMIT 3\\nRETURN m.title AS movie_title, role_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": "\"What percentage of all actors in the database have acted in more than one movie?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 1\\nWITH count(p) AS actors_with_multiple_movies\\nMATCH (actor:Person)-[:ACTED_IN]->(:Movie)\\nWITH actors_with_multiple_movies, count(DISTINCT actor) AS total_actors\\nRETURN (actors_with_multiple_movies * 1.0) / total_actors * 100 AS percentage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_id of the Report, skip the first 2 records and return 2 records!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id SKIP 2\\nLIMIT 2"}]} {"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 JNMP 4/2002 (Letter)!"}, {"role": "assistant", "content": "MATCH (n:Report {report_no:'JNMP 4/2002 (Letter)'})\\nRETURN n"}]} {"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 is 4969a8e0646cdb8842726781e7637625!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '4969a8e0646cdb8842726781e7637625'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for title and article_id from Article where title is not null and article_id exceeds 1063 and sort the results by article_id, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title IS NOT NULL AND n.article_id > 1063\\nRETURN n.title AS title, n.article_id AS article_id\\nORDER BY article_id DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and level of catalog structure with level between 5 and 10."}, {"role": "assistant", "content": "MATCH (c:CatalogStructure)\\nWHERE c.catalog_level_number >= 5 AND c.catalog_level_number <= 10\\nRETURN c.catalog_level_name, c.catalog_level_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Journal where name is J.Diff.Eq and list their properties, including those of Journal!"}, {"role": "assistant", "content": "MATCH (b:Journal)-[r]->(n)\\nWHERE b.name = 'J.Diff.Eq'\\nRETURN properties(b) AS Journal_props, properties(n) AS props"}]} {"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 J.Diff.Eq?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J.Diff.Eq'})-[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 \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the airports which are not in the country 'Iceland'?"}, {"role": "assistant", "content": "MATCH (a:Airport)\\nWHERE a.Country <> 'Iceland'\\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": "What are the top 5 movies directed by directors born in Nebraska?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn CONTAINS \"Nebraska\"\\nRETURN m.title AS MovieTitle, m.imdbRating AS Rating\\nORDER BY Rating 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 Author for which first_name starts with S, 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 'S'\\nWITH n.first_name AS first_name SKIP 2\\nLIMIT 2\\nRETURN first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Categories for which category_id is eea477d68b70c3a05be12567240033ef, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[r]->(n)\\nRETURN n, 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": "Who are the first 5 users who have been moderators in streams with a language other than 'en'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name <> 'en'\\nRETURN u\\nLIMIT 5"}]} {"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: 1139 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '1139'}) -[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 \"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 is the user with the lowest reputation to ask a question?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(:Question)\\nRETURN u\\nORDER BY u.reputation ASC\\nLIMIT 1"}]} {"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 1009!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Article {article_id: '1009'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.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": "What are the different countries with singers above age 20?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Age > 20\\nRETURN DISTINCT singer.Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_id for Report combined with the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id AS Records\\nUNION ALL\\nMATCH (m:DOI)\\nRETURN m.doi_id 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": "Which directors have a poster URL that includes 'w440_and_h660_face'?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.poster CONTAINS 'w440_and_h660_face'\\nRETURN d.name, d.poster"}]} {"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": "List each language and the number of TV Channels using it."}, {"role": "assistant", "content": "MATCH (tv_channel:TV_Channel)\\nRETURN tv_channel.Language,count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who is the most active user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:CREATED]->(p)\\nRETURN u.name AS name, COUNT(p) AS count\\nORDER BY count DESC\\nLIMIT 1"}]} {"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}"}, {"role": "user", "content": "Find the shortest path between Article where comments is LaTeX2e, 36 pages ; Some misprints are corrected and Author, with affiliation equal Ohio State University, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[*]-(e:Author{affiliation:'Ohio State University'}))\\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": "List the roles of actors in the 3 movies with the highest number of actors involved."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(p:Person)\\nWITH m, count(p) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 3\\nMATCH (m)<-[r:ACTED_IN]-(p)\\nRETURN m.title AS movieTitle, p.name AS actorName, r.roles AS roles"}]} {"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"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the average height and weight across males (sex is M)?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.Sex = \"M\"\\nRETURN avg(p.Height), avg(p.Weight)"}]} {"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 total number of reviews written for businesses that are not located in 'Missoula'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.city <> 'Missoula'\\nWITH count(r) AS totalReviews\\nRETURN totalReviews"}]} {"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 suppliers who supply products in both the 'Beverages' and 'Seafood' categories."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.categoryName = 'Beverages'\\nWITH collect(DISTINCT s.companyName) AS beverageSuppliers\\nMATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.categoryName = 'Seafood'\\nWITH beverageSuppliers, collect(DISTINCT s.companyName) AS seafoodSuppliers\\nRETURN apoc.coll.intersection(beverageSuppliers, seafoodSuppliers) AS suppliersInBothCategories"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of the five oldest people?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Name\\nORDER BY p.Age DESC\\nLIMIT 5"}]} {"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 5049b80a2935f95cc95cf14dbfb8c610 or report_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = '5049b80a2935f95cc95cf14dbfb8c610' OR n.report_id IS NOT NULL\\nRETURN DISTINCT n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2014-11-11 and UpdateDate, for which update_date is 2014-11-11?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-11-11'}), (b:UpdateDate{update_date:'2014-11-11'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Role\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Performance\": {\n \"properties\": {\n \"feedback\": \"STRING\",\n \"score\": \"INTEGER\"\n }\n },\n \"Attendance\": {\n \"properties\": {\n \"status\": \"STRING\",\n \"date\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ROLE\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PERFORMANCE\",\n \"to\": \"Performance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ATTENDANCE\",\n \"to\": \"Attendance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ROLE\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PERFORMANCE\",\n \"to\": \"Performance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ATTENDANCE\",\n \"to\": \"Attendance\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_ROLE\": {\n \"since\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the different roles available in the company?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN DISTINCT r.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 most recent questions asked by users with a display name starting with 'A'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.display_name STARTS WITH 'A'\\nRETURN q.title, q.createdAt\\nORDER BY q.createdAt 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": "Find the orders that have a 'shipRegion' value of 'NULL'."}, {"role": "assistant", "content": "MATCH (o:Order {shipRegion: 'NULL'})\\nRETURN o.orderID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Author where first_name is Marco?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Marco'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"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": "\"What is the longest thread of replies to tweets?\""}, {"role": "assistant", "content": "MATCH p=(t:Tweet)-[:REPLY_TO*]->(:Tweet)\\nRETURN p\\nORDER BY length(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Topic where label is Geometry_7 and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.label = 'Geometry_7'\\nRETURN properties(b) AS Topic_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Show different nominees and the number of musicals they have been nominated."}, {"role": "assistant", "content": "MATCH (m:Musical)\\nRETURN m.Nominee AS Nominee, COUNT(m) AS count\\nORDER BY count DESC"}]} {"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": "Return the category_id for Categories combined with the key_id for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.category_id AS Records\\nUNION\\nMATCH (m:Keyword)\\nRETURN m.key_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 the questions that were asked by users with a reputation over 50000 and have a text containing 'error'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 50000 AND q.text CONTAINS 'error'\\nRETURN q.title AS question_title, q.text AS question_text, q.link AS question_link, u.display_name AS user_name, u.reputation AS user_reputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is draft detail of the document with id 7?"}, {"role": "assistant", "content": "MATCH (dd:DocumentDraft {document_id: 7})\\nRETURN dd.draft_details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 actors who have starred in both a movie and an adult film?"}, {"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 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Author for which last_name is Mason!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Mason'})-[*]->(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": "Who are the top 3 characters with the highest book1BetweennessCentrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality 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 top 5 filings by amount that were filed between January 1, 2015, and December 31, 2015?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin >= datetime('2015-01-01T00:00:00Z') AND f.end <= datetime('2015-12-31T23:59:59Z')\\nRETURN f\\nORDER BY f.amount 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 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 \"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=2008-01-29!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2008-01-29'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the most common status across all cities?"}, {"role": "assistant", "content": "MATCH (c:City)\\nWITH c.Status AS Status, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Status"}]} {"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 Swansea preprint 99-14 and Author, for which first_name is Marco?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Swansea preprint 99-14'}), (b:Author{first_name:'Marco'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Find the name of the storm that affected both Afghanistan and Albania regions."}, {"role": "assistant", "content": "MATCH (r1:Region {Region_name: 'Afghanistan'}), (r2:Region {Region_name: 'Albania'})\\nMATCH (s:Storm)-[a:AFFECTS]->(r1)\\nWHERE a.Number_city_affected > 0\\nMATCH (s)-[a2:AFFECTS]->(r2)\\nWHERE a2.Number_city_affected > 0\\nRETURN s.Name"}]} {"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 cb7bf6a30b0381c15264305ad7677b30 or specifications is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = 'cb7bf6a30b0381c15264305ad7677b30' OR n.specifications IS NOT NULL\\nRETURN DISTINCT n.specifications AS specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of technicians who have not been assigned to repair machines."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE NOT (:RepairAssignment)-[:ASSIGNED_TO]->(t)\\nRETURN t.Name as Name"}]} {"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 2015-06-26 and the year of the update_date is 2010!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2015-06-26' AND date(n.update_date).year = 2010\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of comments and abstract from Article where comments does not start with P!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.comments STARTS WITH 'P'\\nRETURN DISTINCT n.comments AS comments, n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where journal_id is f663b7749e96288af8628ca3cdb4f021 and Article, with article_id equal 1048, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'})-[*]-(e:Article{article_id:'1048'}))\\nRETURN nodes(p)"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the max and min grade point for all letter grade."}, {"role": "assistant", "content": "MATCH (gc:Gradeconversion)\\nRETURN MAX(gc.gradepoint), MIN(gc.gradepoint)"}]} {"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": "Is there a path connecting Keyword where key_id is 4969a8e0646cdb8842726781e7637625 and Article, for which article_id is 1015?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'4969a8e0646cdb8842726781e7637625'}), (b:Article{article_id:'1015'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 1048, through Journal via PUBLISHED_IN with pages 527-551?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1048'})-[:PUBLISHED_IN {pages: '527-551'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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 Randall, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Randall'})-[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": "Who are the people who have reviewed the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:REVIEWED]->(m:Movie)\\nWITH p, count(m) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1\\nRETURN p.name AS reviewerName, reviewCount"}]} {"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 original_name of the entity with the earliest incorporation_date?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWITH e\\nORDER BY e.incorporation_date ASC\\nRETURN e.original_name\\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": "What are the top 5 questions that have been linked the most in external websites?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.link IS NOT NULL\\nRETURN q\\nORDER BY q.link 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 users have reviewed businesses located at '1151 W Broadway St'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '1151 W Broadway St'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN u.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 directed the movie with the highest revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH max(m.revenue) AS maxRevenue, collect(m) AS movie\\nUNWIND movie AS highestRevenueMovie\\nMATCH (highestRevenueMovie)<-[:DIRECTED]-(d:Director)\\nRETURN d.name"}]} {"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 e!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'e'\\nRETURN n.author_id AS author_id, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\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 DOI and Article?"}, {"role": "assistant", "content": "MATCH (a:DOI)-[r]->(n), (d:Article)-[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 \"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 1139 and PUBLISHED_IN has year on 2001!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2001'}]->(m)\\nWHERE n.article_id='1139'\\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": "List the directors who have directed movies with a runtime longer than the average runtime of all movies."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH avg(m.runtime) AS average_runtime\\nMATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.runtime > average_runtime\\nRETURN DISTINCT d.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 57aa19619324dcd39039c52e67002af3 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '57aa19619324dcd39039c52e67002af3'\\nRETURN properties(b) AS DOI_props, properties(n) AS props"}]} {"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": "Fetch eight samples of the update_date of the UpdateDate and the label for Topic!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nMATCH (m:Topic)\\nRETURN n.update_date, m.label\\nLIMIT 8"}]} {"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 9, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'9'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"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": "Count the number of employees for each city."}, {"role": "assistant", "content": "MATCH (employee:employee)\\nRETURN count(*),employee.City"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Categories where category_id is 088fbf884bd7c6533956a45531b362b7 and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.category_id = '088fbf884bd7c6533956a45531b362b7'\\nRETURN properties(b) AS Categories_props, properties(n) AS props"}]} {"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 6 pages and PUBLISHED_IN has pages on 293-299!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '293-299'}]->(m)\\nWHERE n.comments='6 pages'\\nRETURN m.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 movies directed by persons born after 1960."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born > 1960\\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": "What are the roles of actors in the movie titled 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie {title: 'Speed Racer'})\\nRETURN p.name, r.roles"}]} {"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 IMDb rating that have been directed by the same director?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(d:Director)\\nWITH d, m\\nORDER BY m.imdbRating DESC\\nWITH d, collect(m)[0..5] AS topMovies\\nRETURN d.name AS director, [movie IN topMovies | movie.title] AS movies, [movie IN topMovies | movie.imdbRating] AS ratings"}]} {"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 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 traversing through Author with affiliation unspecified!"}, {"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. '})-[*]->(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": "Which 3 users have the highest average favorites on their questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, AVG(q.favorites) AS avgFavorites\\nORDER BY avgFavorites DESC\\nLIMIT 3\\nRETURN u.display_name AS UserName, avgFavorites"}]} {"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?"}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)\\nWITH actor, count(movie) AS movieCount\\nORDER BY movieCount DESC\\nRETURN actor.name, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Which restaurants have highest rating? List the restaurant name and its rating."}, {"role": "assistant", "content": "MATCH (r:Restaurant)\\nRETURN r.ResName, r.Rating\\nORDER BY r.Rating 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 languages are most common in adult films?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN l.name AS Language, count(a) AS NumberOfAdultFilms\\nORDER BY NumberOfAdultFilms 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 the top 5 questions with the highest number of downVotes."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.downVotes DESC\\nLIMIT 5"}]} {"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 4129, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'4129'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\"."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Industry <> \"Banking\"\\nRETURN max(c.Sales_billion), min(c.Sales_billion)"}]} {"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 highest number of actors involved?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH m, COUNT(a) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 3\\nRETURN m.title AS MovieTitle, actorCount"}]} {"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 Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Subexponential groups in 4-manifold topology'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\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 supplier supplies the product with the highest unit price?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p\\nORDER BY p.unitPrice DESC\\nLIMIT 1\\nMATCH (s:Supplier)-[:SUPPLIES]->(p)\\nRETURN s.companyName"}]} {"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 2017!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2021-02-09' AND date(n.update_date).year = 2017\\nRETURN n.update_date AS update_date"}]} {"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 officers who have a note on their record in the Panama Papers?"}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWHERE o.sourceID = 'Panama Papers' AND o.note IS NOT NULL\\nRETURN o.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 `orderID` and total discount applied to each order."}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product)\\nWITH o, sum(toFloat(rel.unitPrice) * rel.quantity * toFloat(rel.discount)) AS totalDiscount\\nRETURN o.orderID, totalDiscount"}]} {"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 least voted for movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.votes\\nORDER BY m.votes\\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 URLs of the top 5 tweets retweeted by 'Neo4j'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)<-[:RETWEETS]-(retweet:Tweet)\\nWITH tweet, COUNT(retweet) AS retweet_count\\nORDER BY retweet_count DESC\\nLIMIT 5\\nMATCH (tweet)-[:CONTAINS]->(link:Link)\\nRETURN link.url"}]} {"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 468e440686a5984c9dbaefb5ac25d127!"}, {"role": "assistant", "content": "MATCH path=(:Keyword {key_id:'468e440686a5984c9dbaefb5ac25d127'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are each document's location code, and starting date and ending data in that location?"}, {"role": "assistant", "content": "MATCH (d:DocumentLocation)\\nRETURN d.Location_Code, d.Date_in_Location_From, d.Date_in_Locaton_To"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the title of the Article and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Author)\\nRETURN n.title, m.author_id\\nLIMIT 8"}]} {"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 1069, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1069'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"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": "Are there any nodes that are connected with Categories where category_id is 088fbf884bd7c6533956a45531b362b7 and share a common property with Report, for which report_no equals SPbU-IP-00-03?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[r]->(n), (d:Report{report_no:'SPbU-IP-00-03'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many posts were made in the third month?"}, {"role": "assistant", "content": "MATCH (:User)-[r:CREATED]->(p:Post) \\nWHERE date(r.timestamp).month = 3\\nRETURN COUNT(p) AS count"}]} {"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}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1056 and Journal, for which journal_id equals f6582df4742923aacfc6e67638bd4bf6?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1056'})-[*]->(d:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})\\nRETURN count(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 is the average number of words in a review?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nWITH size(split(r.text, \" \")) AS wordsPerReview\\nRETURN avg(wordsPerReview) AS averageWordCount"}]} {"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 DataCenter has the most types of routers?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(r:Router)\\nWITH dc, count(DISTINCT r.name) AS routerCount\\nRETURN dc.name AS DataCenter, routerCount\\nORDER BY routerCount DESC\\nLIMIT 1"}]} {"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 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 what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.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 properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {}\n },\n \"Keyword\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Journal and Keyword?"}, {"role": "assistant", "content": "MATCH (a:Journal)-[r]->(n), (d:Keyword)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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": "What is the average disk size of all the Types?"}, {"role": "assistant", "content": "MATCH (t:Type)\\nWITH avg(t.disk) AS average_disk_size\\nRETURN average_disk_size"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the rooms for members of the faculty who are professors and who live in building NEB?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Rank = \"Professor\" AND f.Building = \"NEB\"\\nRETURN f.Room"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2015-06-26 and Journal, for which journal_id is 6dc95119d8a737d9ffc7fe367159849b?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2015-06-26'}), (b:Journal{journal_id:'6dc95119d8a737d9ffc7fe367159849b'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many book clubs are there?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN count(b)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Topic where label is Topology_5, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Topology_5'})-[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": "Identify the streams that have the most moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nOPTIONAL MATCH (s)-[:MODERATOR]->(m:User)\\nWITH s, count(m) AS moderatorCount\\nRETURN s.name AS streamName, moderatorCount\\nORDER BY moderatorCount DESC\\nLIMIT 10"}]} {"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 is the age of the oldest dog?"}, {"role": "assistant", "content": "MATCH (dogs:Dogs)\\nRETURN max(dogs.age)"}]} {"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 application named 'logstash'?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'logstash'})-[:DEPENDS_ON]->(dependency)\\nRETURN dependency.name AS DependencyName"}]} {"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 have the highest average revenue per movie?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.revenue IS NOT NULL\\nWITH g.name AS genre, avg(m.revenue) AS avgRevenue\\nRETURN genre, avgRevenue\\nORDER BY avgRevenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from DOI for which name=10.1007/s00220-004-1078-7!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00220-004-1078-7'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 'Egress' node in the 'DataCenter'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(egress:Egress)\\nRETURN egress.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many main stream browsers whose market share is at least 5 exist?"}, {"role": "assistant", "content": "MATCH (b:Browser)\\nWHERE b.market_share >= 5\\nRETURN COUNT(b)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What is the entry name of the most expensive catalog (in USD)?"}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN cc.catalog_entry_name\\nORDER BY cc.price_in_dollars DESC\\nLIMIT 1"}]} {"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 Spectral Theory_2!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.label = 'Spectral Theory_2'\\nRETURN properties(n) AS props"}]} {"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 to the network with IP 10.2?"}, {"role": "assistant", "content": "MATCH (n:Network {ip: '10.2'})-[:ROUTES]->(i:Interface)\\nRETURN i.ip AS InterfaceIP"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the department htat has no students minoring in it?"}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE NOT EXISTS {(m:MinorIn)\\nWHERE m.DNO = d.DNO}\\nRETURN d.DName"}]} {"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": "Can you list the names of entities with multiple relationships types like 'same_as' and 'registered_address'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:same_as]->(:Entity)\\nMATCH (e)-[:registered_address]->(:Address)\\nRETURN DISTINCT e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the name of browsers in descending order by market share."}, {"role": "assistant", "content": "MATCH (b:Browser)\\nRETURN b.name\\nORDER BY b.market_share DESC"}]} {"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 with the most interactions in book 3."}, {"role": "assistant", "content": "MATCH (c:Character)-[i:INTERACTS3]->(other:Character)\\nRETURN c.name AS character, sum(i.weight) AS total_interactions\\nORDER BY total_interactions 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 all questions with a score of 0 and their associated tags."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score = 0\\nRETURN q.title AS question_title, q.text AS question_text, q.link AS question_link, q.createdAt AS created_at, collect(t.name) AS tags"}]} {"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, beneficiary bank, and filer organization are all located in different countries?"}, {"role": "assistant", "content": "MATCH (filing:Filing)\\nWITH filing\\nMATCH (filing)-[:ORIGINATOR]->(:Entity)-[:COUNTRY]->(originatorCountry:Country)\\nMATCH (filing)-[:CONCERNS]->(:Entity)-[:COUNTRY]->(beneficiaryCountry:Country)\\nMATCH (filing)-[:FILED]->(:Entity)-[:COUNTRY]->(filerCountry:Country)\\nWHERE originatorCountry.code <> beneficiaryCountry.code AND originatorCountry.code <> filerCountry.code AND beneficiaryCountry.code <> filerCountry.code\\nRETURN count(DISTINCT filing) AS totalFilings"}]} {"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 2010-06-18!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate {update_date:'2010-06-18'})\\nRETURN n"}]} {"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 SPbU-IP-00-03, and what are their relationships to Report?"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r]-(n)\\nWHERE c.report_no = 'SPbU-IP-00-03'\\nRETURN properties(n) AS props, 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 Neeman!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name CONTAINS 'Neeman'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.affiliation CONTAINS 'Neeman'\\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": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Superselection Theory for Subsystems and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Superselection Theory for Subsystems'}) -[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": "List all nodes that are connected to Keyword where name contains discrete log problem, along with the type of their relationship with Keyword!"}, {"role": "assistant", "content": "MATCH (d:Keyword)-[r]->(n)\\nWHERE d.name CONTAINS 'discrete log problem'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n },\n \"Author\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both DOI and Author, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*]-(n)-[*]-(b:Author)\\nRETURN labels(n)"}]} {"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 graphical appearance associated with 'Tina dress'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Tina dress'})\\nRETURN a.graphicalAppearanceNo, a.graphicalAppearanceName"}]} {"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 have a connection to Interface with IP '10.3.8.253'?"}, {"role": "assistant", "content": "MATCH (r:Router)-[:ROUTES]->(i:Interface {ip: '10.3.8.253'})\\nRETURN r.name AS RouterName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\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 Keyword where name is super-population viewpoint and Author, with last_name equal Neeman, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{name:'super-population viewpoint'})-[*]-(e:Author{last_name:'Neeman'}))\\nRETURN nodes(p)"}]} {"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 average and maximum age for each type of pet."}, {"role": "assistant", "content": "MATCH (pets:Pets)\\nRETURN avg(pets.pet_age),max(pets.pet_age),pets.PetType"}]} {"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 f2f5ea4787de1e16c51c306e07bb740c!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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": "Retrieve the first 3 characters who interact in book 1 with a weight of exactly 291."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1 {weight: 291}]->(c2:Character)\\nRETURN c1.name, c2.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 streams have the most 'CHATTER' relationships? List the top 5."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u:User)\\nWITH s, COUNT(u) AS chatterCount\\nORDER BY chatterCount DESC\\nLIMIT 5\\nRETURN s.name AS streamName, chatterCount"}]} {"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 names of the singers who performed in a concert in 2014?"}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)-[]-(T3:concert)\\nWHERE T3.Year = 2014\\nRETURN T2.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 videos that have a budget less than 5000 USD."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.budget < 5000\\nRETURN v.title, v.budget\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find the country that the most papers are affiliated with."}, {"role": "assistant", "content": "MATCH (a:Authorhip)-[:WRITES]->(p:Paper), (a:Authorhip)-[:WRITTEN_BY]->(au:Author), (a:Authorhip)-[:AFFILIATED_WITH]->(i:Inst)\\nWITH i.country as country, count(*) AS count\\nRETURN country\\nORDER BY count DESC\\nLIMIT 1"}]} {"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 088fbf884bd7c6533956a45531b362b7 and share a common property with Categories, for which category_id equals f2012d79fe17f02edc7542435cc04510?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[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 \"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": "Who are the directors of movies that have an IMDb rating greater than 8.0?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(d:Director)\\nWHERE m.imdbRating > 8.0\\nRETURN DISTINCT d.name AS director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Sort the first names of all the authors in alphabetical order."}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.fname\\nORDER BY a.fname"}]} {"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 248!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '248'\\nRETURN n.article_id AS article_id, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Sort the company names in descending order of the company's market value."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.name\\nORDER BY c.Market_Value_billion DESC"}]} {"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 dd0a54fea06e7b7a384741aac9313d65!"}, {"role": "assistant", "content": "MATCH (n:Report {report_id:'dd0a54fea06e7b7a384741aac9313d65'})\\nRETURN n"}]} {"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": "Fetch eight samples of the report_no of the Report and the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:DOI)\\nRETURN n.report_no, m.name\\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": "Which 3 employees have processed the most orders?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o.employeeID AS employeeID, COUNT(o) AS orderCount\\nRETURN employeeID, orderCount\\nORDER BY orderCount 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": "Show names of teachers and the number of courses they teach."}, {"role": "assistant", "content": "MATCH (T2:teacher)-[T1:course_arrange]-()\\nRETURN T2.Name,count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the specifications for Categories combined with the label for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.label 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 adult movies 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 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "From which hometowns did both people older than 23 and younger than 20 come from?"}, {"role": "assistant", "content": "MATCH (p1:Person)\\nWHERE p1.Age > 23\\nWITH p1.Hometown AS hometown\\nMATCH (p2:Person)\\nWHERE p2.Age < 20 AND p2.Hometown = hometown\\nRETURN hometown"}]} {"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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 19 pages, AMSLatex, references added and PUBLISHED_IN has year on 2004!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2004'}]->(m)\\nWHERE n.comments='19 pages, AMSLatex, references added'\\nRETURN m.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 all questions tagged with 'graphql-subscriptions'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql-subscriptions'})\\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.downVotes AS downVotes, q.score AS score, q.favorites AS favorites, q.answered AS answered"}]} {"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 ebe5bed51965553359ee9f13db0293e1, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'ebe5bed51965553359ee9f13db0293e1'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What are the degrees conferred in \"San Francisco State University\" in 2001."}, {"role": "assistant", "content": "MATCH (T1:Campus {Campus:\"San Francisco State University\"})-[r:TEACHES]-(T2:Degree {Year:2001})\\nRETURN T2.Degrees"}]} {"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 0 and a pagerank above 8."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 0 AND c.pagerank > 8\\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 \"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 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 year 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.year IS NOT NULL\\nRETURN n.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 top 3 movies with the most distinct actors in the ACTED_IN relationship?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(p:Person)\\nWITH m, count(DISTINCT p) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 3\\nRETURN m.title AS movieTitle, actorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Topic where label or label contains Population Dynamics_0!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label CONTAINS 'Population Dynamics_0'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Topic)\\nWHERE m.label CONTAINS 'Population Dynamics_0'\\nRETURN m AS node"}]} {"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 the shortest path between Author where author_id is 13c7b3c4f69c510e94c671c881522bac and Categories, with specifications equal math.AT, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{author_id:'13c7b3c4f69c510e94c671c881522bac'})-[*]-(e:Categories{specifications:'math.AT'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many patients have an allergy and what are these allergies?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_ALLERGY]->(a:Allergy)\\nRETURN COUNT(p) AS numPatients, COLLECT(a.name) AS allergies"}]} {"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 Maslov class and minimality in Calabi-Yau manifolds, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 the top 5 users with the largest area who have interacted with others."}, {"role": "assistant", "content": "MATCH (u:User)-[:INTERACTED]->(:User)\\nWHERE u.area IS NOT NULL\\nRETURN u\\nORDER BY u.area DESC\\nLIMIT 5"}]} {"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}"}, {"role": "user", "content": "How many paths are there between Article where title is An adelic causality problem related to abelian L-functions and Categories, for which specifications equals math.IT?"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'An adelic causality problem related to abelian L-functions'})-[*]->(d:Categories{specifications:'math.IT'})\\nRETURN count(p)"}]} {"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 1052!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 OR n.article_id < 1052\\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": "Who are the first 3 people to review a movie with a summary 'Pretty funny at times'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary = 'Pretty funny at times'\\nRETURN p.name\\nORDER BY r.rating 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 three users have the highest 'betweenness' metric in the network?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.betweenness\\nORDER BY u.betweenness DESC\\nLIMIT 3"}]} {"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 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 COUNT(DISTINCT TYPE(r)) AS rels, 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": "Who are the top 3 characters with the highest centrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.centrality\\nORDER BY c.centrality 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 1009 or article_id is less than 1048!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1009 OR n.article_id < 1048\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "List the nominees that have been nominated more than two musicals."}, {"role": "assistant", "content": "MATCH (n:Musical)\\nWITH n.Nominee AS nominee, COUNT(*) AS count\\nWHERE count > 2\\nRETURN nominee"}]} {"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 Keller!"}, {"role": "assistant", "content": "MATCH path=(:Author {last_name:'Keller'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the last names of students in room 111?"}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Classroom = 111\\nRETURN n.LastName"}]} {"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 numGenres\\nORDER BY numGenres DESC\\nLIMIT 3\\nRETURN u.name AS user, numGenres"}]} {"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": "Fetch the abstract of the Article that are linked via HAS_CATEGORY to more than three Categories, and list Categories category_id 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.category_id) as category_id\\nWHERE count > 3\\nRETURN abstract, count, category_id\\nORDER BY count\\nLIMIT 6"}]} {"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 users who mentioned 'Neo4j' in their tweets."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u.screen_name, t.created_at\\nORDER BY t.created_at ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Keyword for which name is layer-by-layer growth!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'layer-by-layer growth'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 originators in the most number of filings involving a beneficiary bank from 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nWITH e, count(f) AS filingsCount\\nRETURN e, filingsCount\\nORDER BY filingsCount 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": "What are the first 3 movies with the most characters in their overview?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.overview, size(split(m.overview, \" \")) AS word_count\\nORDER BY word_count 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 more than 10000 followers and less than 15000 statuses?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.followers > 10000 AND u.statuses < 15000\\nRETURN u.screen_name AS screen_name, u.followers AS followers, u.statuses AS statuses"}]} {"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 `address` of the address with `icij_id` 'F969D23B2EDF91CAEBE119A675B61AAB'?"}, {"role": "assistant", "content": "MATCH (a:Address {icij_id: 'F969D23B2EDF91CAEBE119A675B61AAB'})\\nRETURN a.address"}]} {"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 978aee6db23fc939cec71ac05eb15b7a or specifications is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '978aee6db23fc939cec71ac05eb15b7a' OR n.specifications IS NOT NULL\\nRETURN DISTINCT n.specifications AS specifications"}]} {"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 have the same release year as 'Toy Story' and list their titles and genres."}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: 'Toy Story'})\\nWITH toyStory, toyStory.released AS toyStoryYear\\nMATCH (otherMovies:Movie {released: toyStoryYear})\\nWITH otherMovies, toyStoryYear, [(otherMovies)-[:IN_GENRE]->(genres) | genres.name] AS genres\\nRETURN otherMovies.title AS movieTitle, genres, toyStoryYear"}]} {"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 users that 'neo4j' mentions most frequently in their tweets?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:MENTIONS]->(mentioned:User)\\nRETURN mentioned, count(*) AS num_mentions\\nORDER BY num_mentions DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Give me the names of members whose address is in Harford or Waterbury."}, {"role": "assistant", "content": "MATCH (m:Member)\\nWHERE m.Address = 'Harford' OR m.Address = 'Waterbury'\\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": "Which characters have a 'fastrf_embedding' value greater than 1.0 in the 4th position and a 'centrality' less than 0.5?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[3] > 1.0 AND c.centrality < 0.5\\nRETURN c.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 first 5 products that were part of an order with a 'freight' cost over $250."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE toFloat(o.freight) > 250\\nRETURN p.productName AS productName, o.freight AS freight\\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": "What is the average betweenness centrality of users who follow Neo4j?"}, {"role": "assistant", "content": "MATCH (n:User {screen_name: 'neo4j'})<-[:FOLLOWS]-(follower)\\nWITH avg(follower.betweenness) AS average_betweenness\\nRETURN average_betweenness"}]} {"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 that have been reviewed with a summary mentioning 'funny'."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary CONTAINS 'funny'\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the name and description for location code x?"}, {"role": "assistant", "content": "MATCH (n:RefLocation)\\nWHERE n.Location_Code = \"x\"\\nRETURN n.Location_Name, n.Location_Description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the publisher with most number of books?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWITH b.Publisher AS publisher, count(b) AS count\\nORDER BY count DESC\\nRETURN publisher\\nLIMIT 1"}]} {"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 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 also to another node?"}, {"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), (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": "What is the name of the adult movie with the highest popularity?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nRETURN a.title\\nORDER BY a.popularity 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": "Who are the top 3 followers of 'Neo4j' based on betweenness centrality?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})<-[:FOLLOWS]-(follower:User)\\nRETURN follower.name AS follower_name, follower.betweenness AS betweenness\\nORDER BY follower.betweenness DESC\\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}"}, {"role": "user", "content": "Find the shortest path between Article where title is Solutions to congruences using sets with the property of Baire and DOI, with doi_id equal 6ecd77a291d325cb3e01160880d88c69, 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:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'}))\\nRETURN nodes(p)"}]} {"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 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.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"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 names and release years for all the songs of the youngest singer?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.song_name,singer.song_release_year\\nORDER BY singer.age\\nLIMIT 1"}]} {"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 discrete log problem, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'discrete log problem'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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": "What is the average rating for movies with \"The Matrix\" in the title?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title CONTAINS 'The Matrix'\\nWITH m\\nMATCH (p:Person)-[r:REVIEWED]->(m)\\nRETURN avg(r.rating)"}]} {"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 name and the release year of the song by the youngest singer."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.song_name,singer.song_release_year\\nORDER BY singer.age\\nLIMIT 1"}]} {"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 are at the end of a path starting from Keyword, with key_id equal to 1af2a68bafbcdcb0f3329c5793163154, passing through Topic via HAS_TOPIC?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'})-[:HAS_TOPIC]->(c:Topic)-[r]->(n)\\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": "For each Article, find the number of Journal linked via PUBLISHED_IN where year is 2004 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.year = '2004'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of doi_id and name from DOI where doi_id does not start with 4!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE NOT n.doi_id STARTS WITH '4'\\nRETURN DISTINCT n.doi_id AS doi_id, n.name AS 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 budget and were released after 2010?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= '2011-01-01' AND m.budget IS NOT NULL\\nRETURN m\\nORDER BY m.budget DESC\\nLIMIT 5"}]} {"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 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 their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.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 properties(b) AS Topic_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": "List nodes that are 3 hops away from Keyword for which key_id=c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c807a6943bac079cc85fda45518ea7f4'})-[*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 first 3 businesses located in San Mateo."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})\\nRETURN b\\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 (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE m.runtime < 80\\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 \"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 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 what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.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 properties(n) AS props, r"}]} {"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 Latex, 9 pages, no figures!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'Latex, 9 pages, no figures'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.author_id 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 movie has the most user ratings?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-()\\nWITH m, count(*) AS ratingCount\\nORDER BY ratingCount DESC\\nRETURN m.title AS movieTitle, ratingCount\\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": "Identify streams that have moderators who are also VIPs."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(m)\\nWHERE exists{(m)-[:VIP]->(s)}\\nRETURN s, m"}]} {"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 Dunajski!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[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 movies have been rated by more than three users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, count(u) AS userCount\\nWHERE userCount > 3\\nRETURN m"}]} {"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 where title is Open sets satisfying systems of congruences, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{title:'Open sets satisfying systems of congruences'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"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 there a unique product code mentioned for Nora T-shirt's category?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Nora T-shirt'\\nRETURN DISTINCT p.productCode"}]} {"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 by the number of filings with an end date in 2012?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.end_date_format CONTAINS \"2012\"\\nRETURN f.originator_bank AS OriginatorBank, COUNT(f) AS NumberOfFilings\\nORDER BY NumberOfFilings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "How many roles are there?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN count(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the description of the role named \"Proof Reader\"?"}, {"role": "assistant", "content": "MATCH (role:Role)\\nWHERE role.Role_Name = \"Proof Reader\"\\nRETURN role.Role_Description"}]} {"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": "Retrieve the name for Keyword that is linked through a HAS_KEY relationship with the Article where abstract is 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) -[ha:HAS_KEY]->(m)\\nWHERE n.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. '\\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": "How many movies were released in the year 1990?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE date(m.release_date).year = 1990\\nRETURN count(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the official names of cities that have population over 1500 or less than 500?"}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Population > 1500 OR c.Population < 500\\nRETURN c.Official_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the titles and authors or editors that correspond to books made after 1989?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWHERE b.Year > 1989\\nRETURN b.Book_Title, b.Author_or_Editor"}]} {"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?"}, {"role": "assistant", "content": "MATCH (:Movie)-[:IN_GENRE]->(genre:Genre)\\nWITH genre, count(*) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN genre.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\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 (m:Musical)\\nWHERE m.Award = \"Tony Award\" OR m.Award = \"Cleavant Derricks\"\\nRETURN m.Nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are all the location codes and location names?"}, {"role": "assistant", "content": "MATCH (n:RefLocation)\\nRETURN n.Location_Code, n.Location_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to DOI where name is 10.1088/0305-4470/33/25/304 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1088/0305-4470/33/25/304'})-[r]->(n)\\nRETURN properties(n), 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": "List the first 3 subscriptions that were initiated in 2020."}, {"role": "assistant", "content": "MATCH (s:Subscription)\\nWHERE s.expiresAt >= datetime('2020-01-01T00:00:00Z') AND s.expiresAt < datetime('2021-01-01T00:00:00Z')\\nRETURN s.id, s.expiresAt\\nORDER BY s.expiresAt\\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 all movies where the director is also listed as an actor."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nMATCH (p:Person)-[:DIRECTED]->(m)\\nWHERE (p)-[:ACTED_IN]->(m)\\nRETURN DISTINCT m.title"}]} {"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 Solutions to congruences using sets with the property of Baire and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.title = 'Solutions to congruences using sets with the property of Baire'\\nRETURN properties(b) AS Article_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {}\n },\n \"Keyword\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Author and Keyword!"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r1]-(n)-[r2]->(d:Keyword)\\nRETURN labels(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 \"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 6147 and are PUBLISHED_IN linked to Journal, where meta is 227?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'6147'})-[r:PUBLISHED_IN {meta :'227'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 reviews for businesses located at '313 N 1st St W'."}, {"role": "assistant", "content": "MATCH (b:Business {address: '313 N 1st St W'})<-[:REVIEWS]-(r:Review)\\nRETURN r.text, r.stars\\nORDER BY r.stars DESC\\nLIMIT 3"}]} {"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": "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 year on 2000!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2000'}]->(m)\\nWHERE n.article_id='1008'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION ALL\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the total horses record for each farm, sorted ascending?"}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN f.Total_Horses\\nORDER BY f.Total_Horses ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the name of the swimmer who has the most records."}, {"role": "assistant", "content": "MATCH (s:Swimmer)-[:COMPETES_IN]->(e:Event)\\nWITH s.name AS name, count(*) AS count\\nRETURN name\\nORDER BY count DESC\\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 1008 or article_id is less than 1069!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1008 OR n.article_id < 1069\\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 the movies where Joel Silver has a production role."}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Joel Silver\"})-[:PRODUCED]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.released AS ReleaseYear"}]} {"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 (p:Person)-[r:ACTED_IN]->(m:Movie)\\nRETURN m.title AS Movie, r.roles AS Roles\\nORDER BY size(r.roles) 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 nodes that are 3 hops away from Categories for which category_id=b1d13c8b6874949821d038a8a71379d1!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[*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": "What are the top 5 users with the highest number of followers?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.screen_name, u.followers\\nORDER BY u.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": "What is the total revenue generated by movies released in the 1990s?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 1990 AND m.year <= 1999\\nWITH sum(m.revenue) AS totalRevenue\\nRETURN totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where first_name is S. O. and UpdateDate, with update_date equal 2016-11-23, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{first_name:'S. O.'})-[*]-(e:UpdateDate{update_date:'2016-11-23'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the campus fee for San Jose State University in 1996?"}, {"role": "assistant", "content": "MATCH (n:Campus {Campus: \"San Jose State University\"})<-[:TEACHES]-(fee:CsuFee {Year: 1996}) return fee.CampusFee"}]} {"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 1063!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.article_id = '1063'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?"}, {"role": "assistant", "content": "MATCH (c:Campus)<-[:TEACHES]-(f:Faculty)\\nWHERE f.Year = 2002\\nRETURN f.Faculty\\nORDER BY f.Faculty 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 S. O., along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.first_name CONTAINS 'S. O.'\\nRETURN n, 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": "What are the addresses of businesses that have reviews with 4 stars or more and are located in 'Burlingame'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.city = 'Burlingame' AND r.stars >= 4.0\\nRETURN b.address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Keyword where name is super-population viewpoint and Article, for which title equals An adelic causality problem related to abelian L-functions?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'super-population viewpoint'})-[*]->(d:Article{title:'An adelic causality problem related to abelian L-functions'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Report for which report_id is 5049b80a2935f95cc95cf14dbfb8c610, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})-[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 \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.Year < 2000\\nRETURN avg(m.Budget_million), max(m.Budget_million), min(m.Budget_million)"}]} {"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 movie with the highest rating and what was the summary?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWITH m, r, p\\nORDER BY r.rating DESC\\nLIMIT 1\\nRETURN p.name AS reviewer, r.summary AS review_summary"}]} {"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 by 'Neo4j' based on favorites count?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)\\nRETURN t\\nORDER BY t.favorites 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": "Which characters have the least centrality but more than 30 degree?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality IS NOT NULL AND c.degree > 30\\nRETURN c\\nORDER BY c.centrality ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "On which days more than one revisions were made on catalogs."}, {"role": "assistant", "content": "MATCH (c:Catalog)\\nWITH c.date_of_latest_revision AS date, COUNT(*) AS count\\nWHERE count > 1\\nRETURN date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"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 first_name is R. and traversing through Keyword with name logarithms!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'R.'})-[*]->(d:Keyword{name:'logarithms'})-[*]->(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 names of businesses in 'CA' that have not received any reviews?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'})\\nWHERE NOT EXISTS { (b)<-[:REVIEWS]-(:Review) }\\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": "Provide the details of the first 3 machines in rack 'DC1-RCK-4-9' that run a type 'xl' configuration."}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-4-9'})-[:HOLDS]->(machine:Machine)-[:TYPE]->(type:Type {type: 'xl'})\\nRETURN machine.name, type.name, type.ram, type.cpu, type.disk\\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 budget 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('2000-01-01') AND m.budget IS NOT NULL\\nRETURN m.title, m.budget\\nORDER BY m.budget 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": "List the users who have interacted and have a color code of '#FF4500'."}, {"role": "assistant", "content": "MATCH (u:User)-[:INTERACTED]->(:User)\\nWHERE u.color = '#FF4500'\\nRETURN u"}]} {"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 `shipCountry` and average `freight` cost for the top 5 countries with the highest average `freight` cost."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o.shipCountry AS shipCountry, avg(toFloat(o.freight)) AS averageFreight\\nORDER BY averageFreight DESC\\nLIMIT 5\\nRETURN shipCountry, averageFreight"}]} {"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 2204 and PUBLISHED_IN has meta on 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '217'}]->(m)\\nWHERE n.article_id='2204'\\nRETURN m.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": "What are the top 5 most common contact titles among suppliers?"}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nRETURN s.contactTitle, COUNT(*) AS titleCount\\nORDER BY titleCount 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 are part of the Toy Story Collection?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: \"Toy Story Collection\"})\\nRETURN m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 10 Article that have the article_id recorded and return these values!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id IS NOT NULL\\nRETURN n.article_id\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of the organization that has published the largest number of papers."}, {"role": "assistant", "content": "MATCH (a:Authorhip)-[:WRITES]->(p:Paper), (a)-[:WRITTEN_BY]->(au:Author), (a)-[:AFFILIATED_WITH]->(i:Inst)\\nWITH i.name AS name, COUNT(*) AS count\\nRETURN name\\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": "List the first 3 movies with the lowest revenue and released before 1990."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NOT NULL AND m.release_date < date('1990-01-01')\\nRETURN m\\nORDER BY m.revenue 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 businesses in 'MT' have reviews written in 2016?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'MT'})-[:REVIEWS]->(r:Review)\\nWHERE r.date.year = 2016\\nRETURN b.name, b.address, collect(r.reviewId) AS reviewIds"}]} {"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 {name: 'Neo4j'})-[:AMPLIFIES]->(user:User)\\nRETURN user\\nORDER BY user.followers DESC\\nLIMIT 3"}]} {"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": "For each Article, find the number of Author linked via WRITTEN_BY and retrieve the abstract of the Article and the Author counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS author_count\\nORDER BY author_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 movies have a plot that includes the word 'love'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'love'\\nRETURN m.title AS MovieTitle, m.plot AS Plot"}]} {"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": "Display the top 5 Entities by the number of Filings they have originated."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 5\\nRETURN e, filingsCount"}]} {"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 72e4f3fc2930bd3a0a7730a664d069d6, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.key_id = '72e4f3fc2930bd3a0a7730a664d069d6'\\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 are the top 5 movies released in the 1990s by revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= '1990-01-01' AND m.released < '2000-01-01' 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": "Find the top 5 games played by streams that also chatter with other streams."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game), (s)-[:CHATTER]->(:Stream)\\nWITH g, count(*) AS count\\nRETURN g.name AS game, count\\nORDER BY 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": "How many streams have a creation date that is in the future?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt > datetime()\\nRETURN count(s)"}]} {"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 top 5 entities with the most recent inactivation dates."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.inactivation_date IS NOT NULL\\nRETURN e\\nORDER BY e.inactivation_date 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 with the lowest `book45PageRank` who interact with \"Walder-Rivers\" in any book."}, {"role": "assistant", "content": "MATCH (wr:Character {name: \"Walder-Rivers\"})-[r]-(c:Character)\\nWITH min(c.book45PageRank) AS min_page_rank\\nMATCH (wr:Character {name: \"Walder-Rivers\"})-[r]-(c:Character)\\nWHERE c.book45PageRank = min_page_rank\\nRETURN c.name"}]} {"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 ebe5bed51965553359ee9f13db0293e1!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*3]->(n)\\nWHERE a.journal_id = 'ebe5bed51965553359ee9f13db0293e1'\\nRETURN properties(n) AS props"}]} {"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 5 types of machines in zone 3 by rack."}, {"role": "assistant", "content": "MATCH (z:Zone {zone: 3})-[:ROUTES]->(i:Interface)-[:CONNECTS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN t.type AS MachineType, t.name AS TypeName\\nORDER BY t.id\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the name of a building along with the name of a company whose office is in the building."}, {"role": "assistant", "content": "MATCH (b:Building)<-[:LOCATED_IN]-(c:Company) return b.name, collect(c.name) as companiesInBuilding"}]} {"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 acted in both 'Action' and 'Romance' genres."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: 'Action'}), (a)-[:ACTED_IN]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: 'Romance'})\\nWITH a, COUNT(DISTINCT m1) + COUNT(DISTINCT m2) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN a.name AS actorName, movieCount"}]} {"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 reviewers by average rating given?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, avg(r.rating) AS avg_rating\\nORDER BY avg_rating DESC\\nLIMIT 3\\nRETURN p.name AS reviewer, avg_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": "Find all people who have both produced and directed movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(:Movie)\\nWITH p\\nMATCH (p)-[:PRODUCED]->(:Movie)\\nRETURN DISTINCT p.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 is the colour group code for the 'Duo' article?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Duo'})\\nRETURN a.colourGroupCode"}]} {"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 Burnol!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Burnol'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the cluster of the Topic and the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Article)\\nRETURN n.cluster, m.article_id\\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 reviews discuss 'car wash'?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.text CONTAINS 'car wash'\\nRETURN r"}]} {"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 2014-11-11 and the year of the update_date is 2016!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2014-11-11' AND date(n.update_date).year = 2016\\nRETURN n.update_date AS update_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": "Name the first 3 movies that were produced by 'Pixar Animation Studios' and have a budget above 50 million dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.budget > 50000000\\nRETURN m.title\\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 is the zip code for Port Chelsea?"}, {"role": "assistant", "content": "MATCH (addresses:Addresses)\\nWHERE addresses.city = 'Port Chelsea'\\nRETURN addresses.zip_postcode"}]} {"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.IT!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'math.IT'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'math.IT'\\nRETURN m AS node"}]} {"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 first 3 suppliers with a home page containing 'http'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.homePage CONTAINS 'http'\\nRETURN s.companyName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many comments has Bob made?"}, {"role": "assistant", "content": "MATCH (u:User {name: \"Bob\"})-[:CREATED]->(c:Comment)\\nRETURN COUNT(c) AS count"}]} {"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 breed do the most dogs have? Give me the breed name."}, {"role": "assistant", "content": "MATCH (T1:Breeds)-[]-(T2:Dogs)\\nWITH T1, count(T1.breed_name) AS cnt\\nRETURN T1.breed_name\\nORDER BY cnt 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": "Find the users who are both moderators and VIPs of the same stream."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)<-[:VIP]-(u)\\nRETURN DISTINCT u.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": "Name 3 movies that have the keyword 'jealousy'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'jealousy'})\\nRETURN m.title AS MovieTitle\\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 \"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 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, through Journal via PUBLISHED_IN with meta 217?"}, {"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. '})-[:PUBLISHED_IN {meta: '217'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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 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!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.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'\\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 is the internal ID 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.internal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses are located in the county of Los Angeles?"}, {"role": "assistant", "content": "MATCH (n:Campus)\\nWHERE n.County = \"Los Angeles\"\\nRETURN n.Campus"}]} {"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 the word 'great' in the text?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.text CONTAINS 'great'\\nRETURN DISTINCT 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": "List the Filings where the beneficiary bank and originator bank are from the same country."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = f.beneficiary_bank_country\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of all the calendar items."}, {"role": "assistant", "content": "MATCH (c:RefCalendar)\\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 product categories do not have any discontinued items?"}, {"role": "assistant", "content": "MATCH (c:Category)\\nWHERE NOT EXISTS { \\nMATCH (c)<-[:PART_OF]-(p:Product) \\nWHERE p.discontinued = TRUE }\\nRETURN c.categoryName"}]} {"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": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 2007 and PUBLISHED_IN has pages on 521-554!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '521-554'}]->(m)\\nWHERE n.article_id='2007'\\nRETURN m.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 products are supplied by 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: 'Exotic Liquids'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName AS productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 backdrop path of '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {backdrop_path: '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the number of students in total."}, {"role": "assistant", "content": "MATCH (n:List)\\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": "Retrieve the first 3 filings where the originator bank country is 'United Kingdom' and the amount is above 200000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = 'United Kingdom' AND f.amount > 200000\\nRETURN f\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the description of role code ED?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nWHERE r.role_code = \"ED\"\\nRETURN r.role_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": "Which 5 movies had their entire plot translated into more than one language?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE size(m.languages) > 1\\nRETURN m.title, m.languages\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Topic and Article!"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r1]-(n)-[r2]->(d:Article)\\nRETURN labels(n)"}]} {"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 where specifications is q-fin.RM, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Categories{specifications:'q-fin.RM'})-[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 \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where key_id is 1af2a68bafbcdcb0f3329c5793163154 and Categories, for which specifications is math.IT?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'}), (b:Categories{specifications:'math.IT'})\\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 a book45PageRank less than 1?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank < 1\\nRETURN c.name AS character"}]} {"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 is the average, minimum, and maximum age of all singers from France?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Country = 'France'\\nRETURN avg(singer.Age),min(singer.Age),max(singer.Age)"}]} {"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 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'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 orders shipped to 'France' with a freight cost more than 50."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France' AND toFloat(o.freight) > 50\\nRETURN o.orderID, o.shipName, o.shipCity, o.shipPostalCode, o.shipAddress, o.shipCountry, o.freight"}]} {"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 ( cat\": \"STRING\",\n \"dog )\": \"STRING\",\n \"pet_age\": \"STRING\",\n \"weight\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many dog pets are raised by female students?"}, {"role": "assistant", "content": "MATCH (T1:Student)-[T2:Has_Pet]-(T3:Pets)\\nWHERE T1.Sex = 'F' AND T3.PetType = 'dog'\\nRETURN 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": "What is the minimum amount filed by entities located in the country with name \"Singapore\"?"}, {"role": "assistant", "content": "MATCH (c:Country {name: \"Singapore\"})<-[:COUNTRY]-(e:Entity)-[:FILED]->(f:Filing)\\nWITH min(f.amount) AS minAmount\\nRETURN minAmount"}]} {"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 most suppliers?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH c, count(DISTINCT s) AS supplierCount\\nORDER BY supplierCount DESC\\nLIMIT 3\\nRETURN c.categoryName, supplierCount"}]} {"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 3 users who have asked the most questions about 'apollo'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'apollo'\\nWITH u, count(q) AS questionsAsked\\nORDER BY questionsAsked DESC\\nLIMIT 3\\nRETURN u.display_name, questionsAsked"}]} {"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 for movies with a tagline longer than 20 characters?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE size(m.tagline) > 20\\nRETURN avg(r.rating) AS average_rating"}]} {"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 from users located in 'Graphs Are Everywhere'."}, {"role": "assistant", "content": "MATCH (u:User {location: 'Graphs Are Everywhere'})-[:POSTS]->(t:Tweet)\\nRETURN t.text, t.favorites\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"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 q-fin.PR and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'q-fin.PR'\\nRETURN properties(b) AS Categories_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the number of locations."}, {"role": "assistant", "content": "MATCH (n:RefLocation)\\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 3 suppliers have the highest average unit price across their products?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, avg(p.unitPrice) AS avgUnitPrice\\nORDER BY avgUnitPrice DESC\\nLIMIT 3\\nRETURN s.companyName AS Supplier, avgUnitPrice AS AverageUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 frequently found in movies with a revenue greater than $100 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.revenue > 100000000\\nRETURN g.name, count(m) AS movie_count\\nORDER BY movie_count 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 characters with an INTERACTS2 relationship of weight less than 20."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2]->(c2:Character)\\nWHERE r.weight < 20\\nRETURN c1.name AS character1, c2.name AS character2, r.weight AS 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": "Find the movie with the highest number of votes that has the word \"Welcome\" in its tagline."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Welcome'\\nRETURN m.title, m.votes\\nORDER BY m.votes 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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "How many students have had at least one \"B\" grade?"}, {"role": "assistant", "content": "MATCH (e:EnrolledIn)\\nWHERE e.Grade = \"B\"\\nRETURN count(DISTINCT e.StuID)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians aged either 36 or 37?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE t.Age = 36 OR t.Age = 37\\nRETURN t.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of technicians and the machine series that they repair?"}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T3:Technician), (T1)-[:ASSIGNED_TO]->(T2:Machine)\\nRETURN T3.Name, T2.Machine_series"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is cs.NI and Topic, for which description is Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.NI'}), (b:Topic{description:'Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "What is the average number of comments per thread?"}, {"role": "assistant", "content": "MATCH (p:Post)<-[:THREAD_PARENT]-(c:Comment)\\nWITH p, count(c) AS commentsPerThread\\nRETURN avg(commentsPerThread) AS averageCommentsPerThread"}]} {"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 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Missoula Public Library'})\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWITH r\\nORDER BY r.stars ASC\\nRETURN r.date\\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 top 3 most recent questions asked on the platform."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.createdAt 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 total revenue of movies released in the 21st century?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2001\\nRETURN sum(m.revenue) AS totalRevenue"}]} {"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": "Search for the article_id values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 537-560, and return article_id along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='537-560'\\nWITH DISTINCT n, m\\nRETURN n.article_id AS article_id, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the shipping agent code of shipping agent UPS?"}, {"role": "assistant", "content": "MATCH (n:RefShippingAgent)\\nWHERE n.shipping_agent_name = \"UPS\"\\nRETURN n.shipping_agent_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": "Find the question with the least number of upvotes and a score greater than the average score of questions tagged with 'aws-lambda'."}, {"role": "assistant", "content": "MATCH (t:Tag {name: 'aws-lambda'})<-[:TAGGED]-(q:Question)\\nWITH avg(q.score) AS average_score\\nMATCH (q:Question)\\nWHERE q.score > average_score\\nWITH q\\nORDER BY q.upVotes ASC\\nRETURN q\\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": "Which 3 users wrote the most recent reviews?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name, r.date\\nORDER BY r.date DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many cities have a stadium that was opened before the year of 2006?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nWHERE s.Opening_year < 2006\\nRETURN COUNT(DISTINCT s.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": "List the movies released between 1990 and 2000 with a rating higher than 80."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE m.released >= 1990 AND m.released <= 2000 AND r.rating > 80\\nRETURN DISTINCT m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Movie\": {\n \"properties\": {\n \"released\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\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\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ],\n \"relationshipProperties\": {\n \"ACTED_IN\": {\n \"role\": \"STRING\"\n },\n \"RATED\": {\n \"rating\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Who directed the movie 'Avatar'?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie {title: 'Avatar'})\\nRETURN d.name AS director_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 services that a machine named 'DC1-RCK-4-9-M-103' runs?"}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-4-9-M-103'})-[:RUNS]->(s:Service)\\nRETURN s\\nLIMIT 3"}]} {"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": "Is there a path connecting Article where title is Failure of Brown representability in derived categories and Report, for which report_id is 5049b80a2935f95cc95cf14dbfb8c610?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Failure of Brown representability in derived categories'}), (b:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})\\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 top 5 movies with the highest budgets?"}, {"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 \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "How many regions do we have?"}, {"role": "assistant", "content": "MATCH (r:Region)\\nRETURN count(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 alg-geom and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'alg-geom'\\nRETURN properties(b) AS Categories_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 titles of movies that belong to at least three different genres."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH m, size(collect(g)) AS genreCount\\nWHERE genreCount >= 3\\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 have filed filings where the beneficiary bank is located in a country with a code ending in \"M\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_iso ENDS WITH 'M'\\nWITH f\\nMATCH (e:Entity)-[:FILED]->(f)\\nRETURN DISTINCT e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Author for which last_name is Polishchuk, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Polishchuk'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"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 Spectral Theory_2, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{label:'Spectral Theory_2'})-[*]->(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": "Which entities have been incorporated in the year 2006?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date CONTAINS '2006'\\nRETURN e.name AS entity_name, e.incorporation_date AS incorporation_date"}]} {"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 count of singers?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN count(*)"}]} {"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 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 PUBLISHED_IN has year on 2004!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2004'}]->(m)\\nWHERE n.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 m.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 shipped cities for orders?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nRETURN o.shipCity AS City, count(o) AS NumberOfShipments\\nORDER BY NumberOfShipments DESC\\nLIMIT 5"}]} {"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 293-299, connected to Article that has title equal to Log mirror symmetry and local mirror symmetry?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '293-299'}]->(m:Journal)\\nWHERE n.title = 'Log mirror symmetry and local mirror symmetry'\\nRETURN properties(m) 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": "Which questions were tagged with 'react-apollo' and have a negative score?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'react-apollo'})\\nWHERE q.score < 0\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each classroom, report the classroom number and the number of grades using it."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN n.Classroom, count(DISTINCT n.Grade)"}]} {"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 'Aegon-I-Targaryen' in any book and have a 'centrality' of 0.0."}, {"role": "assistant", "content": "MATCH (aegon:Character {name: 'Aegon-I-Targaryen'})\\nCALL { \\nWITH aegon \\nMATCH (aegon)-[:INTERACTS]->(other) \\nRETURN other \\nUNION \\nWITH aegon \\nMATCH (aegon)-[:INTERACTS1]->(other) \\nRETURN other \\nUNION \\nWITH aegon \\nMATCH (aegon)-[:INTERACTS2]->(other) \\nRETURN other \\nUNION \\nWITH aegon \\nMATCH (aegon)-[:INTERACTS3]->(other) \\nRETURN other \\nUNION \\nWITH aegon \\nMATCH (aegon)-[:INTERACTS45]->(other) \\nRETURN other }\\nWITH other\\nWHERE other.centrality = 0.0\\nRETURN DISTINCT other.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 have a createdAt date in 2020 and a favorites count of zero?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt >= datetime('2020-01-01T00:00:00Z') AND q.createdAt < datetime('2021-01-01T00:00:00Z') AND q.favorites = 0\\nRETURN q.title, q.createdAt, q.favorites"}]} {"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 largest budgets released before 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 2000 AND m.budget IS NOT NULL\\nRETURN m.title, m.budget, m.year\\nORDER BY m.budget 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": "Find the actors who have acted in movies directed by a director born before 1950."}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)<-[:DIRECTED]-(director:Director)\\nWHERE director.born < date('1950-01-01')\\nRETURN DISTINCT actor.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author where first_name is Amnon!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Amnon'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which buildings have more than one company offices? Give me the building names."}, {"role": "assistant", "content": "MATCH (c:Company)-[:LOCATED_IN]->(b:Building)\\nWITH b.name AS name, COUNT(*) AS count\\nWHERE count > 1\\nRETURN 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 3 or cluster is less than 3!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 3 OR n.cluster < 3\\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": "Enumerate the properties of nodes that are either directly or indirectly connected to Keyword for which key_id is 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 Do All Elliptic Curves of the Same Order Have the Same Difficulty of\n Discrete Log?!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Do All Elliptic Curves of the Same Order Have the Same Difficulty of Discrete Log?'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the names of people, ordered alphabetically."}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Name\\nORDER BY p.Name ASC"}]} {"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 (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 \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the total number of gas stations that opened between 2000 and 2005?"}, {"role": "assistant", "content": "MATCH (gs:GasStation)\\nWHERE gs.Open_Year >= 2000 AND gs.Open_Year <= 2005\\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": "What are the versions of the software 'RHEL'?"}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:VERSION]->(v:Version)\\nRETURN v.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 1052 or article_id is less than 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1052 OR n.article_id < 1013\\nRETURN n\\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 the characters with the lowest 'degree' who have interacted with 'Stevron-Frey'."}, {"role": "assistant", "content": "MATCH (stevron:Character {name: 'Stevron-Frey'})-[r]->(other:Character)\\nWITH min(other.degree) AS min_degree\\nMATCH (stevron:Character {name: 'Stevron-Frey'})-[r]->(other:Character)\\nWHERE other.degree = min_degree\\nRETURN other.name, other.degree"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common maximum page size?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p.max_page_size AS max_page_size, count(*) as count\\nORDER BY count DESC\\nRETURN DISTINCT max_page_size\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"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 DOI where name is 10.1088/0305-4470/33/25/304 and traversing through Categories with category_id b1d13c8b6874949821d038a8a71379d1!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1088/0305-4470/33/25/304'})-[*]->(d:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the company name and the main industry for all companies whose headquarters are not from USA."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters <> 'USA'\\nRETURN c.Main_Industry, c.Company"}]} {"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 where the originator and beneficiary banks are in the same country."}, {"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\\nORDER BY f.amount DESC\\nLIMIT 5"}]} {"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 D!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name STARTS WITH 'D'\\nRETURN n.last_name AS last_name, n.affiliation AS affiliation"}]} {"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.1023/A:1004807104626, and also to another node?"}, {"role": "assistant", "content": "1004807104626, and also to another node?\nA: MATCH (a:DOI{name:'10.1023/A:1004807104626'})-[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 }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where title is not Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Subexponential groups in 4-manifold topology'\\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": "List all genres associated with movies that have a runtime less than 80 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.runtime < 80\\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": "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"}]} {"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]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name IN ['Animation', 'Adventure']\\nWITH a, count(DISTINCT g) AS genreCount\\nWHERE genreCount = 2\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the headquarters that have at least two companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Headquarters AS Headquarters, COUNT(*) AS count\\nWHERE count >= 2\\nRETURN Headquarters"}]} {"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 book1BetweennessCentrality over 1000."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality > 1000\\nRETURN c.name, c.book1BetweennessCentrality"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 produced by 'Universal Pictures'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Universal Pictures'})\\nRETURN m\\nORDER BY m.average_vote 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": "What is the country code of the entity that originated the filing with the lowest amount?"}, {"role": "assistant", "content": "MATCH (filing:Filing)\\nWITH min(filing.amount) AS lowestAmount\\nMATCH (filing:Filing)\\nWHERE filing.amount = lowestAmount\\nMATCH (filing)-[:ORIGINATOR]->(entity:Entity)\\nMATCH (entity)-[:COUNTRY]->(country:Country)\\nRETURN country.code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the stories of highest building?"}, {"role": "assistant", "content": "MATCH (c:Company)-[:LOCATED_IN]->(b:Building)\\nRETURN b.Stories\\nORDER BY b.Height 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": "Find the top 3 characters with the lowest 'book1PageRank'."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of people in ascending alphabetical order?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Name\\nORDER BY p.Name ASC"}]} {"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 strongest INTERACTS relationships by weight."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nRETURN c1.name, c2.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": "Which addresses are associated with the sourceID 'Bahamas Leaks'?"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.sourceID = 'Bahamas Leaks'\\nRETURN a.address"}]} {"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 directed by persons born after 1970?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born > 1970\\nRETURN m.title AS MovieTitle, m.released AS ReleaseYear"}]} {"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 have a VIP who also plays \"Rust\" and have the language \"en\"?"}, {"role": "assistant", "content": "MATCH (s1:Stream)-[:VIP]->(vip:Stream|User)\\nWHERE (vip)-[:PLAYS]->(:Game {name: \"Rust\"})\\nMATCH (s1)-[:HAS_LANGUAGE]->(:Language {name: \"en\"})\\nWITH avg(s1.total_view_count) AS avgViewCount\\nRETURN avgViewCount"}]} {"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 logarithms!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name: 'logarithms'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.label STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Article where title is An adelic causality problem related to abelian L-functions and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'An adelic causality problem related to abelian L-functions'})-[r]->(n)\\nRETURN properties(n), r"}]} {"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": "Find nodes that are at the end of a path starting at Author where affiliation is Nice - Sophia Antipolis and traversing through Journal with name Topology!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'})-[*]->(d:Journal{name:'Topology'})-[*]->(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 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 AS MovieTitle, m.runtime AS Runtime, m.languages AS Languages"}]} {"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 8, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'8'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all campuses located at Chico?"}, {"role": "assistant", "content": "MATCH (campus:Campus)\\nWHERE campus.Location = \"Chico\"\\nRETURN campus.Campus"}]} {"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 number of shops in each location."}, {"role": "assistant", "content": "MATCH (shop:shop)\\nRETURN count(*),shop.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": "Find the movie with the lowest number of votes that has the word \"times\" in its review summary."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE r.summary CONTAINS 'times'\\nRETURN m.title AS movieTitle, m.votes AS movieVotes\\nORDER BY movieVotes\\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 top 5 categories by total unitsInStock?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS category, SUM(p.unitsInStock) AS totalUnitsInStock\\nORDER BY totalUnitsInStock DESC\\nLIMIT 5\\nRETURN category, totalUnitsInStock"}]} {"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=Warnaar!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Warnaar'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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": "Fetch eight samples of the affiliation of the Author and the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Categories)\\nRETURN n.affiliation, m.specifications\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "List name, dates active, and number of deaths for all storms with at least 1 death."}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE s.Number_Deaths >= 1\\nRETURN s.Name, s.Dates_active, s.Number_Deaths"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where last_name is Warnaar and Author, for which first_name is R.?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Warnaar'}), (b:Author{first_name:'R.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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": "For each stadium, how many concerts play there?"}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWITH count(T1.stadium_id) AS count, T2.name AS name\\nRETURN name,count"}]} {"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 218 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 = '218'\\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 \"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 highest average IMDb rating for their movies?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nWITH d, avg(m.imdbRating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN d.name AS Director, avgRating AS Average_IMDb_Rating"}]} {"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 created on a Wednesday?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE datetime(s.createdAt).dayOfWeek = 3\\nRETURN count(s)"}]} {"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 01c710839626aa78f11824682bccef1b!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = '01c710839626aa78f11824682bccef1b'\\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 name of the product with the highest reorder level?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p, p.reorderLevel AS reorderLevel\\nORDER BY reorderLevel DESCENDING\\nRETURN p.productName\\nLIMIT 1"}]} {"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=Geometry_7!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "How many papers are published in total?"}, {"role": "assistant", "content": "MATCH (p:Paper)\\nRETURN count(p)"}]} {"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 Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH path=(:Article {title:'Free Field Construction for the ABF Models in Regime II'})-->()\\nRETURN path"}]} {"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 suppliers who do not have a homepage listed."}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.homePage IS NULL\\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": "What are the top 3 businesses with reviews mentioning 'car'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'car'\\nRETURN b.name, COUNT(r) AS reviewCount\\nORDER BY reviewCount 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 top 5 products with the highest total sales quantity."}, {"role": "assistant", "content": "MATCH (p:Product)-[o:ORDERS]->()\\nWITH p, sum(o.quantity) AS totalQuantity\\nORDER BY totalQuantity DESC\\nLIMIT 5\\nRETURN p.productName, totalQuantity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which patients have had an appointment with Dr. Johnson and also have a 'Migraine' diagnosis?"}, {"role": "assistant", "content": "MATCH (d:Doctor {name: 'Dr. Johnson'})<-[:HAS_DOCTOR]-(p:Patient)-[:HAS_APPOINTMENT]->(:Appointment)\\nMATCH (p)-[:HAS_DIAGNOSIS]->(:Diagnosis)-[:OF_TYPE]->(:DiagnosisType {description: 'Migraine'})\\nWITH DISTINCT p\\nRETURN p.name as patient"}]} {"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 users named 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\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 are the top 5 most popular videos?"}, {"role": "assistant", "content": "MATCH (v:Video)\\nRETURN v\\nORDER BY v.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 and its comments, count the Journal connected through PUBLISHED_IN and fetch the comments and the counts that are greater than 5, starting with the largest comments and count!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nWITH n.comments AS comments, count(m) AS count\\nWHERE count > 4\\nRETURN comments, count\\nORDER BY comments DESC, count DESC"}]} {"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 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\\nORDER BY q.createdAt\\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 average number of followers for streams that have the game \"Rust\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: \"Rust\"})\\nRETURN avg(s.followers)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show company name and main industry without a gas station."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE NOT (c)-[:OWNS]->(:GasStation)\\nRETURN c.Company, c.Main_Industry"}]} {"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": "\"provide all possible informations about the database instance \""}, {"role": "assistant", "content": "MATCH (n)\\nOPTIONAL MATCH (n)-[r]->(m)\\nRETURN n, r, 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 first 3 customers who have purchased orders shipped to France?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE o.shipCountry = 'France'\\nRETURN c\\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 distinct values of 'originator_iso' in filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nRETURN DISTINCT f.originator_iso"}]} {"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 based on their size property in descending order."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u\\nORDER BY u.size 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 runtime of movies directed by the same director as \"Open Season\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Open Season'})\\nMATCH (m)<-[:DIRECTED]-(d:Director)\\nWITH d\\nMATCH (d)-[:DIRECTED]->(otherMovies:Movie)\\nWITH avg(otherMovies.runtime) AS averageRuntime\\nRETURN averageRuntime"}]} {"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 for which name is log-balanced, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.name = 'log-balanced'\\nRETURN properties(n) AS props, r"}]} {"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 is 72e4f3fc2930bd3a0a7730a664d069d6!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '72e4f3fc2930bd3a0a7730a664d069d6'\\nRETURN n"}]} {"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 Mathematical Analysis_8 or description is not null!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Mathematical Analysis_8' OR n.description IS NOT NULL\\nRETURN DISTINCT n.description AS description"}]} {"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 received reviews with a text length greater than 100 characters."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE size(r.text) > 100\\nRETURN DISTINCT b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the years, titles, and publishers for all books, ordered by year descending?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN b.Year, b.Book_Title, b.Publisher\\nORDER BY b.Year DESC"}]} {"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": "Search for the comments values from 20 Article that are linked to Journal via PUBLISHED_IN with meta = 217, and return comments along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta='217'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, 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 are the top 3 people born after 1960 who have directed a movie titled 'V for Vendetta'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie {title: 'V for Vendetta'})\\nWHERE p.born > 1960\\nRETURN p.name, p.born\\nORDER BY p.born DESC\\nLIMIT 3"}]} {"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": "Is there a path connecting Categories where category_id is 088fbf884bd7c6533956a45531b362b7 and UpdateDate, for which update_date is 2017-07-11?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'}), (b:UpdateDate{update_date:'2017-07-11'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 f, skip the first 2 records and return the next 2 records of author_id!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'f'\\nWITH n.author_id AS author_id SKIP 2\\nLIMIT 2\\nRETURN author_id"}]} {"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 Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Chow groups of weighted hypersurfaces'\\nRETURN DISTINCT n.article_id AS 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": "What are the names of the first 3 entities that originated filings with a beneficiary bank in 'Barclays Bank Plc'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.beneficiary_bank = 'Barclays Bank Plc'\\nRETURN e.name\\nORDER BY f.begin\\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": "Show the first 3 tweets that 'neo4j' has amplified."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:AMPLIFIES]->(user:User)-[:POSTS]->(tweet:Tweet)\\nRETURN tweet\\nORDER BY tweet.created_at ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the resident details containing the substring 'Miss'?"}, {"role": "assistant", "content": "MATCH (r:Resident)\\nWHERE r.other_details =~ \"(?i).*Miss.*\"\\nRETURN r.other_details"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "How many courses have more than 2 credits?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nWHERE c.Credits > 2\\nRETURN count(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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the department name that is in Building \"Mergenthaler\"."}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Building = \"Mergenthaler\"\\nRETURN d.DName"}]} {"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 cb7bf6a30b0381c15264305ad7677b30?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the number of document types."}, {"role": "assistant", "content": "MATCH (n:RefDocumentType)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"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 name Topology!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Journal {name: 'Topology'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.last_name"}]} {"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 Commun.Math.Phys!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Commun.Math.Phys'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "List categories that have at least two books after year 1989."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWHERE b.Year > 1989\\nWITH b.Category AS category, count(*) AS count\\nWHERE count >= 2\\nRETURN category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the headquarter of the company with the largest sales?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Headquarters\\nORDER BY c.Sales_in_Billion 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 movies have a runtime longer than 120 minutes and were released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 120 AND m.released > '2000-01-01'\\nRETURN m.title, m.released, 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": "Can you list the top 5 adult films with the highest popularity?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nRETURN a.title, a.popularity\\nORDER BY a.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Report that has report_no Swansea preprint 99-14!"}, {"role": "assistant", "content": "MATCH path=(:Report {report_no:'Swansea preprint 99-14'})-->()\\nRETURN path"}]} {"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 c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.key_id='c807a6943bac079cc85fda45518ea7f4'\\nRETURN m.label"}]} {"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 \"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 title $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article {title: '$A_{\\infty}$-structures on an elliptic curve'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.affiliation 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": "Who are the top 5 actors by the number of movies acted in the 'Adventure' genre?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Adventure'})\\nWITH a, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 5\\nRETURN a.name, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the themes of competitions with host cities having populations larger than 1000."}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Population > 1000\\nWITH c\\nMATCH (fc:Farm_competition)-[:TAKES_PLACE_IN]->(c)\\nRETURN fc.Theme"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find products with max page size as \"A4\" or pages per minute color smaller than 5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.max_page_size = \"A4\" OR p.pages_per_minute_color < 5\\nRETURN p.Product"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to DOI where name contains 10.1088/0305-4470/33/25/304, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.name CONTAINS '10.1088/0305-4470/33/25/304'\\nRETURN n, TYPE(r)"}]} {"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 HU-IAS/K-8, DPSU-99-8, RIMS-1266, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})-[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 supply the product with the highest unitPrice?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH max(p.unitPrice) AS maxPrice\\nMATCH (p:Product {unitPrice: maxPrice})\\nMATCH (s:Supplier)-[:SUPPLIES]->(p)\\nRETURN s.companyName"}]} {"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 6!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 4 OR n.cluster < 6\\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": "Which actors have starred in movies with a runtime greater than 150 minutes? (first 3)"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 150\\nMATCH (p:Person)-[:CAST_FOR]->(m)\\nRETURN DISTINCT p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where journal_id is 79942321e19994e38ad2e372af21c893 and Journal, for which journal_id is d41d8cd98f00b204e9800998ecf8427e?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'79942321e19994e38ad2e372af21c893'}), (b:Journal{journal_id:'d41d8cd98f00b204e9800998ecf8427e'})\\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": "Find the question with the oldest creation date."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.createdAt 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": "Identify the top 5 countries by the total amount of filings originating from them."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS CountryName, SUM(f.amount) AS TotalAmount\\nRETURN CountryName, TotalAmount\\nORDER BY TotalAmount DESC\\nLIMIT 5"}]} {"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 name, country, age for all singers ordered by age from the oldest to the youngest."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.name,singer.country,singer.age\\nORDER BY singer.age DESC"}]} {"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 who have a book1BetweennessCentrality greater than 1000."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality > 1000\\nRETURN c.name AS character"}]} {"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 2005 and 2010 have the tagline 'Speed has no limits'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 2005 AND m.released <= 2010 AND m.tagline = 'Speed has no limits'\\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": "List the first 3 entities that are originators in filings with a beneficiary bank country of 'United Kingdom' and amount less than 500000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.amount < 500000\\nRETURN e.name AS OriginatorEntity\\nORDER BY e.name\\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": "Return the update_date for UpdateDate combined with the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.author_id 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 all the movies that have a revenue equal to zero."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue = 0\\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": "Find all characters that have 'INTERACTS2' relationship with a weight above 50."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2]->(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 \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the cluster for Topic combined with the journal_id for Journal, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.cluster AS Records\\nUNION\\nMATCH (m:Journal)\\nRETURN m.journal_id 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": "What is the average followers to total view count ratio for streams with \"en\" as a language?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: \"en\"})\\nWITH s, (toFloat(s.followers) / toFloat(s.total_view_count)) AS follower_to_view_ratio\\nWITH avg(follower_to_view_ratio) AS averageRatio\\nRETURN averageRatio"}]} {"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 by number of movies they've acted in that have been released on Christmas Day."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released = \"1995-12-25\"\\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 \"Job\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"location\": \"STRING\",\n \"salary\": \"INTEGER\"\n }\n },\n \"Interview\": {\n \"properties\": {\n \"feedback\": \"STRING\",\n \"date\": \"STRING\"\n }\n },\n \"HiringDecision\": {\n \"properties\": {\n \"date\": \"STRING\",\n \"decision\": \"STRING\"\n }\n },\n \"Applicant\": {\n \"properties\": {\n \"skills\": \"STRING\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Job\",\n \"type\": \"HAS_APPLICANT\",\n \"to\": \"Applicant\"\n },\n {\n \"from\": \"Interview\",\n \"type\": \"RESULTED_IN\",\n \"to\": \"HiringDecision\"\n },\n {\n \"from\": \"Applicant\",\n \"type\": \"HAD_INTERVIEW\",\n \"to\": \"Interview\"\n },\n {\n \"from\": \"Interview\",\n \"type\": \"RESULTED_IN\",\n \"to\": \"HiringDecision\"\n },\n {\n \"from\": \"Job\",\n \"type\": \"HAS_APPLICANT\",\n \"to\": \"Applicant\"\n },\n {\n \"from\": \"Applicant\",\n \"type\": \"HAD_INTERVIEW\",\n \"to\": \"Interview\"\n }\n ],\n \"relationshipProperties\": {\n \"RESULTED_IN\": {\n \"decision_date\": \"STRING\"\n },\n \"HAS_APPLICANT\": {\n \"applied_date\": \"STRING\"\n },\n \"HAD_INTERVIEW\": {\n \"interview_date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many job listings are there in each location?"}, {"role": "assistant", "content": "MATCH (j:Job)\\nRETURN j.location, COUNT(j) as job_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 are the movies directed by a person who has also acted in a movie?"}, {"role": "assistant", "content": "MATCH (director:Person)-[:CREW_FOR {job: \"Director\"}]->(movie:Movie)\\nMATCH (director)-[:CAST_FOR]->(acted_movie:Movie)\\nRETURN DISTINCT movie.title AS DirectedMovies"}]} {"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' and 'beneficiary_bank' are both located in the same city."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank IS NOT NULL AND f.beneficiary_bank IS NOT NULL\\nMATCH (f)-[:ORIGINATOR]->(originator:Entity {name: f.originator_bank})\\nMATCH (f)-[:CONCERNS]->(beneficiary:Entity {name: f.beneficiary_bank})\\nWHERE originator.location = beneficiary.location\\nRETURN f.id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "List all role codes, role names, and role descriptions."}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN r.Role_Code, r.Role_Name, r.Role_Description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the title and publication dates of books."}, {"role": "assistant", "content": "MATCH (book:Book), (publication:Publication) where publication.Book_ID = book.Book_ID return book.Title as Title, publication.Publication_Date as publicationDate"}]} {"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 673313cb2dcde5d215a7e7ec2788f676!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = '673313cb2dcde5d215a7e7ec2788f676'\\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 acted in a movie with a budget over 50 million USD."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget > 50000000\\nRETURN a.name AS actorName, m.title AS movieTitle, m.budget AS movieBudget\\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": "List all singer names in concerts in year 2014."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)-[]-(T3:concert)\\nWHERE T3.year = 2014\\nRETURN T2.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which doctors have given a prescription to a patient who later had an appointment for a 'Routine Checkup' reason?"}, {"role": "assistant", "content": "MATCH (a:Appointment)<-[:HAS_APPOINTMENT]-(p:Patient)-[:HAS_PRESCRIPTION]->(prescription:Prescription)<-[:GAVE_PRESCRIPTION]-(d:Doctor)\\nWHERE datetime(prescription.date) < datetime(a.date) AND a.reason = \"Routine Checkup\"\\nWITH d.name as doctor\\nRETURN doctor"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the label for Topic combined with the comments for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.comments 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 with the tagline 'What price would you put on your health?'"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline = 'What price would you put on your health?'\\nRETURN m\\nORDER BY m.average_vote 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 3 characters with fastrf_embedding values where the first element is greater than 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[0] > 0.5\\nRETURN c\\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 languages are most common among movies with a popularity score above 10?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.popularity > 10\\nRETURN l.name AS language, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses are located in Chico?"}, {"role": "assistant", "content": "MATCH (campus:Campus)\\nWHERE campus.Location = \"Chico\"\\nRETURN campus.Campus"}]} {"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": "Is there a path connecting Author where affiliation is unspecified and Journal, for which name is Math. Ann?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'}), (b:Journal{name:'Math. Ann'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 1048 and Author, with author_id equal fd6fcf9374c7e5fd0377800da5e8f846, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1048'})-[*]-(e:Author{author_id:'fd6fcf9374c7e5fd0377800da5e8f846'}))\\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": "Which business located on 'E Front St' has the highest number of reviews?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.address CONTAINS 'E Front St'\\nWITH b, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1\\nRETURN b.name AS businessName, 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": "Find all filings where the beneficiary bank country is 'United States'."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United States'\\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": "Find the movies that have a release date after the year 2010."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date.year > 2010\\nRETURN m"}]} {"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 affiliation or first_name contains unspecified!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation CONTAINS 'unspecified'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS 'unspecified'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the name, role code, and date of birth of the employee named 'Armani'?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.Employee_Name = 'Armani'\\nRETURN e.Employee_Name, e.Role_Code, e.Date_of_Birth"}]} {"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 11!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"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 3 Services listening on Port 80."}, {"role": "assistant", "content": "MATCH (s:Service)-[:LISTENS]->(p:Port {port: 80})\\nRETURN s.name AS service_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 distinct properties of nodes that are 2 hops away from Journal with name equal to Math. Nachr!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Nachr'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"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=super-exponential growth!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'super-exponential growth'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 Computing the Top Betti Numbers of Semi-algebraic Sets Defined by\n Quadratic Inequalities in Polynomial Time, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Computing the Top Betti Numbers of Semi-algebraic Sets Defined by Quadratic Inequalities in Polynomial Time'})-[:HAS_CATEGORY]->(c:Categories)-[r]->(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": "Identify the officers that have a country code of 'KOR'."}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWHERE o.country_codes = 'KOR'\\nRETURN o.name AS officer_name, o.country_codes AS country_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "How many technicians are there?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN count(t)"}]} {"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 2008!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2016-11-23' AND date(n.update_date).year = 2008\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Author where affiliation is Nice - Sophia Antipolis and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'})-[r]->(n)\\nRETURN properties(n), r"}]} {"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 11, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'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 \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the years and the official names of the host cities of competitions."}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)-[:TAKES_PLACE_IN]->(c:City)\\nRETURN fc.Year, c.Official_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the description for Topic combined with the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.description AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many companies are in either \"Banking\" industry or \"Conglomerate\" industry?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Industry = \"Banking\" OR c.Industry = \"Conglomerate\"\\nRETURN 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 has the most directed movies in the database?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, COUNT(m) AS directedMovies\\nORDER BY directedMovies DESC\\nLIMIT 1\\nRETURN p.name AS director, directedMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Environment\": {\n \"properties\": {\n \"unit\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Sensor\": {\n \"properties\": {\n \"location\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Pollutant\": {\n \"properties\": {\n \"description\": \"STRING\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Sensor\",\n \"type\": \"MEASURES\",\n \"to\": \"Environment\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"MEASURES\",\n \"to\": \"Environment\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"DETECTS\",\n \"to\": \"Pollutant\"\n },\n {\n \"from\": \"Sensor\",\n \"type\": \"DETECTS\",\n \"to\": \"Pollutant\"\n }\n ],\n \"relationshipProperties\": {\n \"MEASURES\": {\n \"value\": \"INTEGER\",\n \"date\": \"STRING\"\n },\n \"DETECTS\": {\n \"value\": \"INTEGER\",\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which sensor detected the highest level of CO2?"}, {"role": "assistant", "content": "MATCH (s:Sensor)-[d:DETECTS]->(p:Pollutant {name: 'CO2'})\\nWITH s, d.value AS level\\nORDER BY level DESC\\nLIMIT 1\\nRETURN s as sensor"}]} {"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 \"Ryman-Frey\" in book 45?"}, {"role": "assistant", "content": "MATCH (rf:Character {name: \"Ryman-Frey\"})-[:INTERACTS45]-(other)\\nWITH avg(other.degree) AS avg_degree\\nRETURN avg_degree"}]} {"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 1015!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 OR n.article_id < 1015\\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": "Find the top 5 tweets by 'Neo4j' using a specific source."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:USING]->(s:Source)\\nRETURN t\\nORDER BY t.favorites 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": "Identify suppliers who do not have a home page listed."}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.homePage IS NULL\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the starting year for the oldest technician?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Starting_Year\\nORDER BY t.Age DESC\\nLIMIT 1"}]} {"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 Geometry_7, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{label:'Geometry_7'})-[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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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)\\nRETURN m.title, m.runtime\\nORDER BY m.runtime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the name and description for role code \"MG\"?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nWHERE r.Role_Code = \"MG\"\\nRETURN r.Role_Name, r.Role_Description"}]} {"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 services that listen on port 80?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(s:Service)-[:LISTENS]->(p:Port {port: 80})\\nRETURN m.name AS machine_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 all interfaces connected to the router 'DC1-R-1'."}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-R-1'})-[:ROUTES]->(i:Interface)\\nRETURN i"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the company name and rank for all companies in the decreasing order of their sales."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Company, c.Rank\\nORDER BY c.Sales_billion DESC"}]} {"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 527-551!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '527-551'\\nRETURN n.comments AS comments, count(m) AS 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": "Show the first 3 questions where the score is exactly zero."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score = 0\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"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 Alexander!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Alexander'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 entities based on the total amount received."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nRETURN e.name AS Beneficiary, sum(f.amount) AS TotalAmountReceived\\nORDER BY TotalAmountReceived 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": "Identify the top 3 most frequent communities in INTERACTS relationships."}, {"role": "assistant", "content": "MATCH (c1:Character)-[i:INTERACTS]->(c2:Character)\\nRETURN c1.community, count(*) AS frequency\\nORDER BY frequency DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Exhibit\": {\n \"properties\": {\n \"location\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Artifact\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"year\": \"INTEGER\",\n \"type\": \"STRING\"\n }\n },\n \"Donor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"HistoricalInfo\": {\n \"properties\": {\n \"description\": \"STRING\",\n \"period\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Exhibit\",\n \"type\": \"HAS_HISTORICAL_INFO\",\n \"to\": \"HistoricalInfo\"\n },\n {\n \"from\": \"Artifact\",\n \"type\": \"INCLUDED_IN\",\n \"to\": \"Exhibit\"\n },\n {\n \"from\": \"Donor\",\n \"type\": \"DONATED\",\n \"to\": \"Artifact\"\n },\n {\n \"from\": \"Artifact\",\n \"type\": \"INCLUDED_IN\",\n \"to\": \"Exhibit\"\n },\n {\n \"from\": \"Donor\",\n \"type\": \"DONATED\",\n \"to\": \"Artifact\"\n },\n {\n \"from\": \"Exhibit\",\n \"type\": \"HAS_HISTORICAL_INFO\",\n \"to\": \"HistoricalInfo\"\n }\n ],\n \"relationshipProperties\": {\n \"DONATED\": {\n \"amount\": \"INTEGER\",\n \"date_donated\": \"STRING\"\n },\n \"INCLUDED_IN\": {\n \"date_added\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which artifact was added to the museum collection first?"}, {"role": "assistant", "content": "MATCH (a:Artifact)-[r:INCLUDED_IN]->(e:Exhibit) \\nRETURN a.name \\nORDER BY r.date_added \\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 tweets retweeted by other users?"}, {"role": "assistant", "content": "MATCH (t:Tweet)<-[:RETWEETS]-(retweeted:Tweet)\\nRETURN t, count(retweeted) AS retweets\\nORDER BY retweets 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 top 5 countries based on the number of originator entities they have?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE exists{(e)-[:ORIGINATOR]->(:Filing)}\\nWITH c, count(e) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 5\\nRETURN c.name AS country_name, originator_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 top 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 AS movie_title, budget_to_revenue_ratio\\nORDER BY budget_to_revenue_ratio 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 movies that were produced by a specific country, e.g., 'France'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'France'})\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Transaction\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"id\": \"STRING\",\n \"date\": \"STRING\"\n }\n },\n \"AccountHolder\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"name\": \"STRING\",\n \"dob\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"balance\": \"FLOAT\",\n \"number\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"SENT\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"AccountHolder\",\n \"type\": \"OWNS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"SENT\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"AccountHolder\",\n \"type\": \"OWNS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"TO\",\n \"to\": \"Account\"\n }\n ],\n \"relationshipProperties\": {\n \"SENT\": {\n \"amount\": \"FLOAT\",\n \"on\": \"STRING\"\n },\n \"OWNS\": {\n \"since\": \"STRING\"\n },\n \"TO\": {\n \"amount\": \"FLOAT\",\n \"on\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the total amount of all transactions made in 2021?"}, {"role": "assistant", "content": "MATCH (t:Transaction)\\nWHERE date(t.date).year=2021\\nRETURN SUM(t.amount) AS total_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 to have roles in movies with at least five different production companies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH p, COUNT(DISTINCT pc) AS productionCompanyCount\\nWHERE productionCompanyCount >= 5\\nMATCH (p)-[:CAST_FOR]->(m2:Movie)\\nWITH p, m2\\nORDER BY m2.release_date ASC\\nWITH p, COLLECT(DISTINCT m2)[..3] AS firstThreeMovies\\nRETURN p.name AS actor, firstThreeMovies\\nLIMIT 3"}]} {"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": "How many paths are there between Author where affiliation is unspecified and Article, for which article_id equals 1010?"}, {"role": "assistant", "content": "MATCH p=(a:Author{affiliation:'unspecified'})-[*]->(d:Article{article_id:'1010'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What are the attribute data types with more than 3 attribute definitions?"}, {"role": "assistant", "content": "MATCH (a:AttributeDefinition)\\nWITH a.attribute_data_type as attribute_data_type, count(*) as count\\nWHERE count > 3\\nRETURN distinct(attribute_data_type)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the journal_id of the Journal and the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:Keyword)\\nRETURN n.journal_id, m.key_id\\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 all movies where the writer is also credited as a producer."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:WROTE]-(p:Person)\\nWHERE (p)-[:PRODUCED]->(m)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Adult\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 was Tim Allen casted for in Crazy on the Outside?\n\n\""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Tim Allen\"})-[:CAST_FOR]->(m:Movie {title: \"Crazy on the Outside\"})\\nRETURN m.title AS MovieTitle, p.name AS ActorName, m.id AS MovieID"}]} {"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 businesses that have been reviewed by more than one user?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nWITH b, count(DISTINCT u) AS userCount\\nWHERE userCount > 1\\nRETURN b\\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 first 3 tweets by 'Neo4j' that were favorited more than 300 times."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)\\nWHERE t.favorites > 300\\nRETURN t\\nORDER BY t.created_at ASC\\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 is the jurisdiction_description of the Entity with the internal_id \"1000914\"?"}, {"role": "assistant", "content": "MATCH (e:Entity {internal_id: \"1000914\"})\\nRETURN e.jurisdiction_description"}]} {"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 reviews that contain the text 'great selection'."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.text CONTAINS 'great selection'\\nRETURN u, r, b\\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 adult films with a tagline 'Humiliation. Rape. Murder. You know the drill.'"}, {"role": "assistant", "content": "MATCH (a:Adult {tagline: 'Humiliation. Rape. Murder. You know the drill.'})\\nRETURN a\\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 under 10?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree < 10\\nRETURN c.name"}]} {"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 have a common property with Article where comments is 22 pages, LaTeX and are PUBLISHED_IN linked to Journal, where meta is 220?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'22 pages, LaTeX'})-[r:PUBLISHED_IN {meta :'220'}]->(b:Journal)\\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": "List the first 3 entities that have been beneficiaries in filings originating from 'United Arab Emirates'."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank_country = 'United Arab Emirates'\\nRETURN e.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many CSU campuses are there?"}, {"role": "assistant", "content": "MATCH (n:Campus)\\nRETURN 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": "Which entity has filed the most filings with the originator country as 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.originator_bank_country = 'United Kingdom'\\nRETURN e.name AS entity, COUNT(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 1"}]} {"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 fce69ad0112a3426c57a0582a2b8620f and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(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 is the average, minimum, and maximum age for all French singers?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.country = 'France'\\nRETURN avg(singer.age),min(singer.age),max(singer.age)"}]} {"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 Hyper-K{\\\"a}hler Hierarchies and their twistor theory, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Which catalog contents have a product stock number that starts from \"2\"? Show the catalog entry names."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nWHERE cc.product_stock_number STARTS WITH \"2\"\\nRETURN cc.catalog_entry_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 entities are linked to the address 'ORION HOUSE SERVICES (HK) LIMITED ROOM 1401; 14/F.'?"}, {"role": "assistant", "content": "MATCH (a:Address {address: 'ORION HOUSE SERVICES (HK)\\nLIMITED ROOM 1401; 14/F.'})<-[:registered_address]-(e:Entity)\\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": "Show the top 5 movies with a budget greater than 100 million USD."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nRETURN m\\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": "How many users have written reviews for 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Missoula Public Library'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN COUNT(DISTINCT u) AS numberOfUsers"}]} {"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 reviewed movies with a rating of 100?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating = 100\\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 A., and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'A.'})-[*]->(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": "Identify the first 3 users who are moderators for streams with a description containing 'Belarus'."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE s.description CONTAINS 'Belarus'\\nRETURN u.name, u.id\\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 \"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 1006!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.article_id='1006'\\nRETURN m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"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 Categories where category_id is f2012d79fe17f02edc7542435cc04510 and traversing through Article with title Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'f2012d79fe17f02edc7542435cc04510'})-[*]->(d:Article{title:'Chow groups of weighted hypersurfaces'})-[*]->(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": "Which user has reviewed 'Zootown Brew'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Zootown Brew'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN 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": "Which 3 movies have the highest popularity but the lowest revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.popularity IS NOT NULL AND m.revenue IS NOT NULL\\nRETURN m.title, m.popularity, m.revenue\\nORDER BY m.popularity DESC, m.revenue 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 5 users have the most ratings in the 'Comedy' genre?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Comedy'})\\nRETURN u.name AS user, count(r) AS comedyRatings\\nORDER BY comedyRatings 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": "Which Entities have the same name as an Other node and are registered in Hong Kong?"}, {"role": "assistant", "content": "MATCH (e:Entity), (o:Other)\\nWHERE e.name = o.name AND e.countries CONTAINS \"Hong Kong\"\\nRETURN e.node_id, 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": "What are the top 5 movies with the lowest revenue and are still in 'Released' status?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released'\\nRETURN m.title, m.revenue\\nORDER BY m.revenue ASC\\nLIMIT 5"}]} {"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.NI!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.NI'})-[r]->()\\nRETURN 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": "Find the users who have written reviews for businesses in different categories."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)-[:IN_CATEGORY]->(c:Category)\\nWITH u, collect(DISTINCT c.name) AS categories\\nWHERE size(categories) > 1\\nRETURN u.name AS userName"}]} {"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 produced by persons who have also directed a movie with the same title."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nMATCH (p)-[:DIRECTED]->(m2:Movie)\\nWHERE m.title = m2.title\\nRETURN m.title AS MovieTitle, p.name AS ProducerDirector"}]} {"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]->(retweet:Tweet)-[:RETWEETS]->(original: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 \"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 three most recent movies added to the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the membership level with most number of members."}, {"role": "assistant", "content": "MATCH (m:Member)\\nWITH m.Level as level, count(*) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN level"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award?"}, {"role": "assistant", "content": "MATCH (n:Musical)\\nWHERE n.Award IN [\"Tony Award\", \"Drama Desk Award\"]\\nRETURN DISTINCT n.Nominee"}]} {"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 by amount received in filings where they are the beneficiary?"}, {"role": "assistant", "content": "MATCH (e:Entity)<-[:BENEFITS]-(f:Filing)\\nWITH e, SUM(f.amount) AS total_received\\nORDER BY total_received DESC\\nLIMIT 5\\nRETURN e.name AS entity_name, total_received"}]} {"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 businesses reviewed by users in each year?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWITH date(r.date).year AS year, r.stars AS stars\\nWITH year, avg(stars) AS averageRating\\nRETURN year, 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": "List the top 3 most popular videos with a runtime under 90 minutes."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.runtime < 90\\nRETURN v.title, v.popularity\\nORDER BY v.popularity 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 has the most roles in a single movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nRETURN p.name AS person, m.title AS movie, size(r.roles) AS num_roles\\nORDER BY num_roles 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": "Find the users who have written reviews for businesses that are in a different category than businesses that have been reviewed by other users."}, {"role": "assistant", "content": "MATCH (u1:User)-[:WROTE]->(r1:Review)-[:REVIEWS]->(b1:Business)-[:IN_CATEGORY]->(c1:Category)\\nMATCH (u2:User)-[:WROTE]->(r2:Review)-[:REVIEWS]->(b2:Business)-[:IN_CATEGORY]->(c2:Category)\\nWHERE u1.userId <> u2.userId AND c1.name <> c2.name\\nRETURN DISTINCT u1.name, u2.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=cs.CC!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 the top 3 users who have a label containing 'bsky.social'."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.label CONTAINS 'bsky.social'\\nRETURN u\\nORDER BY u.size 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 unique relationships originate from 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.?"}, {"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.'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"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 2014-01-15 and traversing through Article with title Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-01-15'})-[*]->(d:Article{title:'Solutions to congruences using sets with the property of Baire'})-[*]->(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": "List the first 5 businesses in 'Missoula' that have been reviewed by 'Will'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {city: 'Missoula'})\\nRETURN b.name, b.address, b.city, b.state, b.businessId\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show all company names and headquarters in the descending order of market value."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Company, c.Headquarters\\nORDER BY c.Market_Value DESC"}]} {"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= 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 (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. '})-[*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": "List the top 3 countries by the number of entities that have filed more than 30 filings."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, count(f) AS filingsCount\\nWHERE filingsCount > 30\\nMATCH (e)-[:COUNTRY]->(c:Country)\\nRETURN c.name, count(DISTINCT e) AS entityCount\\nORDER BY entityCount 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 been produced by more than one production company."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH m, count(pc) AS production_company_count\\nWHERE production_company_count > 1\\nRETURN m.title AS movie_title, production_company_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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 6147 and PUBLISHED_IN has meta on 227!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '227'}]->(m)\\nWHERE n.article_id='6147'\\nRETURN m.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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where title is Notes for a Quantum Index Theorem and PUBLISHED_IN has meta on 222!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '222'}]->(m)\\nWHERE n.title='Notes for a Quantum Index Theorem'\\nRETURN m.name"}]} {"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 for which author_id is a95ff40457bf3cae9c6852c6a14937fa, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.author_id = 'a95ff40457bf3cae9c6852c6a14937fa'\\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": "What are the names of characters who have an INTERACTS2 book value of 2 and a weight greater than 50?"}, {"role": "assistant", "content": "MATCH (c:Character)-[i:INTERACTS2]->(other:Character)\\nWHERE i.book = 2 AND i.weight > 50\\nRETURN c.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": "Which nodes have a common property with Article where abstract is 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 and are HAS_KEY linked to a Keyword?"}, {"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. '})-[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 \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 animated movies."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nWITH m\\nORDER BY m.revenue DESC\\nLIMIT 3\\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": "Find the streams that were created before 2018 and have more than 5,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime('2018-01-01T00:00:00.000000Z') AND s.followers > 5000\\nRETURN s"}]} {"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 reviewed the most movies released before 2000."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE m.released < 2000\\nWITH p, count(r) AS reviews\\nORDER BY reviews DESC\\nLIMIT 3\\nRETURN p.name AS PersonName, reviews AS NumberOfReviews"}]} {"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 G&T migration 2000-1!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'G&T migration 2000-1'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 time difference between the creation date of the first question tagged with 'graphql' and the last question tagged with 'apollo'?"}, {"role": "assistant", "content": "MATCH (firstQuestion:Question)-[:TAGGED]->(:Tag {name: 'graphql'})\\nWITH firstQuestion\\nORDER BY firstQuestion.createdAt ASC\\nLIMIT 1\\nMATCH (lastQuestion:Question)-[:TAGGED]->(:Tag {name: 'apollo'})\\nWITH firstQuestion, lastQuestion\\nORDER BY lastQuestion.createdAt DESC\\nLIMIT 1\\nRETURN duration.between(firstQuestion.createdAt, lastQuestion.createdAt) AS timeDifference"}]} {"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 are the countries that have cartoons on TV that were written by Todd Casey?"}, {"role": "assistant", "content": "MATCH (T1:TV_Channel)-[]-(T2:Cartoon)\\nWHERE T2.Written_by = 'Todd Casey'\\nRETURN T1.Country"}]} {"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 a contact title of 'Sales Representative' and are located in 'Berlin'?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.contactTitle = 'Sales Representative' AND c.city = 'Berlin'\\nRETURN c"}]} {"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 director has the highest average IMDB rating for movies with a budget greater than 200 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(d:Director)\\nWHERE m.budget > 200000000\\nWITH d, avg(m.imdbRating) AS averageRating\\nRETURN d.name AS directorName, averageRating\\nORDER BY averageRating 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 last 3 filings by end date that concerned entities based in 'China'."}, {"role": "assistant", "content": "MATCH (c:Country {name: 'China'})<-[:COUNTRY]-(e:Entity)<-[:CONCERNS]-(f:Filing)\\nRETURN f\\nORDER BY f.end 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 categories contain products with no units on order?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitsOnOrder = 0\\nRETURN DISTINCT c.categoryName\\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 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"}]} {"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 Journal of Mathematical Logic!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'})-[*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 suppliers with the most products in the 'Beverages' category."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category {categoryName: 'Beverages'})\\nWITH s, count(p) as productCount\\nORDER BY productCount DESC\\nLIMIT 3\\nRETURN s.companyName AS supplierName, productCount"}]} {"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 abce5ed79c520bdb8fd79a61a852648d, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.doi_id CONTAINS 'abce5ed79c520bdb8fd79a61a852648d'\\nRETURN n, 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": "Which business located on 'E Front St' has the highest average star rating?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.address CONTAINS 'E Front St'\\nWITH b, avg(r.stars) AS avgRating\\nRETURN b.name AS businessName, avgRating\\nORDER BY avgRating 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 entities that have filed the most transactions with a beneficiary in 'China'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:BENEFITS]->(b:Entity)\\nWHERE b.country = 'China'\\nWITH e, count(f) AS transactions\\nORDER BY transactions DESC\\nLIMIT 3\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Topic that has label Dynamical Systems_10!"}, {"role": "assistant", "content": "MATCH path=(:Topic {label:'Dynamical Systems_10'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the most common headquarter for companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Headquarters AS headquarters, COUNT(*) AS count\\nRETURN headquarters\\nORDER BY count DESC\\nLIMIT 1"}]} {"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/s00365-002-0501-6?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00365-002-0501-6'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\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": "How many characters have a degree value equal to 0.0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree = 0.0\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Keyword for which key_id=c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 connect to interfaces with IP addresses in the 10.2 range?"}, {"role": "assistant", "content": "MATCH (r:Router)-[:ROUTES]->(i:Interface)\\nWHERE i.ip STARTS WITH '10.2'\\nRETURN r.name AS RouterName, i.ip AS InterfaceIP"}]} {"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 1069!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.article_id = '1069'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Topology and Report, for which report_no is HU-IAS/K-8, DPSU-99-8, RIMS-1266?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Topology'}), (b:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})\\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": "List the first 3 movies where the main language is not English but have an IMDb rating over 7."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.languages[0] <> 'English' AND m.imdbRating > 7\\nRETURN m.title, m.languages[0], m.imdbRating\\nORDER BY m.imdbRating 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 top 5 most popular movies in the 'Science Fiction' genre."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Science Fiction'})\\nRETURN m.title, m.popularity\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where label is Mathematical Analysis_8!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Mathematical Analysis_8'\\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 number of movies released in each year?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH date(m.release_date).year AS releaseYear, count(m) AS movieCount\\nRETURN releaseYear, movieCount\\nORDER BY releaseYear"}]} {"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.PR!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'q-fin.PR'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'q-fin.PR'\\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": "List the \"sourceID\" values of all relationships connected to Entities with a \"struck_off_date\" before 2010."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date < '2010'\\nWITH e\\nMATCH (e)-[r]->()\\nRETURN DISTINCT r.sourceID\\nUNION\\nMATCH (e:Entity)\\nWHERE e.struck_off_date < '2010'\\nWITH e\\nMATCH (e)<-[r]-()\\nRETURN DISTINCT r.sourceID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "What are all locations of train stations?"}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN DISTINCT s.Location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the names of editors who are older than 25."}, {"role": "assistant", "content": "MATCH (e:Editor)\\nWHERE e.Age > 25\\nRETURN e.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 produced movies directed by Lana Wachowski?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Lana Wachowski\"})-[:DIRECTED]->(m:Movie)\\nMATCH (producer:Person)-[:PRODUCED]->(m)\\nRETURN DISTINCT producer.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 the 'PQ Micaela Waistbelt'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'PQ Micaela Waistbelt'})-[:VARIANT_OF]->(p:Product)\\nRETURN p.productTypeName"}]} {"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 (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nMATCH (t)-[:TAGS]->(h:Hashtag)\\nMATCH (t)-[:MENTIONS]->(m:User)\\nRETURN t.id_str AS tweet_id, t.text AS tweet_text, t.created_at AS created_at\\nORDER BY t.created_at 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 where key_id is 5d6533e2a77e3daabc184ee8f2441597, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[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 \"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 that have 'INTERACTS1' relationship with a weight above 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 \"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 22 pages, LaTeX, through Journal via PUBLISHED_IN with pages 537-560?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'22 pages, LaTeX'})-[:PUBLISHED_IN {pages: '537-560'}]->(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": "List the top 3 people who have the most credits as a producer."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:CREW_FOR]->(m:Movie)\\nWHERE r.job = 'Producer'\\nRETURN p.name, count(r) AS credits\\nORDER BY credits 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 descriptions of streams that play 'Call of Duty: Warzone'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Call of Duty: Warzone'})\\nRETURN s.description AS StreamDescription"}]} {"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 produced by more than one person?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWITH m, count(p) AS producers_count\\nWHERE producers_count > 1\\nRETURN m.title AS Movie, producers_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 title is Free Field Construction for the ABF Models in Regime II or comments is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Free Field Construction for the ABF Models in Regime II' OR n.comments IS NOT NULL\\nRETURN DISTINCT n.comments AS comments"}]} {"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 Switch?"}, {"role": "assistant", "content": "MATCH (s:Switch)-[:ROUTES]->(i:Interface)\\nWITH s, count(i) AS interfaceCount\\nRETURN avg(interfaceCount) AS averageInterfacesPerSwitch"}]} {"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_id or report_id contains dd0a54fea06e7b7a384741aac9313d65!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS 'dd0a54fea06e7b7a384741aac9313d65'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_id CONTAINS 'dd0a54fea06e7b7a384741aac9313d65'\\nRETURN m AS node"}]} {"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 all orders shipped to 'France' and have a 'shipVia' of 1."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shipCountry = 'France' AND o.shipVia = '1'\\nRETURN o.orderID, o.shipName, o.shipCity, o.shipPostalCode, o.shipAddress, o.shipCountry, o.shipVia"}]} {"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 \"name\" value containing \"LOYAL\"."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:intermediary_of]->(e:Entity)\\nWHERE i.name CONTAINS 'LOYAL'\\nRETURN DISTINCT e.countries"}]} {"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 most recently edited addresses."}, {"role": "assistant", "content": "MATCH (a:Address)\\nRETURN a.address, a.lastEditTimestamp\\nORDER BY a.lastEditTimestamp DESC\\nLIMIT 5"}]} {"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 (:User)-[r:RETWEETS]->(t:Tweet)\\nRETURN t.id AS TweetID, COUNT(r) AS RetweetCount\\nORDER BY RetweetCount 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 frequently ordered products by customers from 'USA'?"}, {"role": "assistant", "content": "MATCH (c:Customer {country: 'USA'})-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nRETURN p.productName, count(o) AS ordersCount\\nORDER BY ordersCount 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 eight instances of Article where either article_id exceeds 1010 or article_id is less than 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1010 OR n.article_id < 1013\\nRETURN n\\nLIMIT 8"}]} {"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 = 303-348, and return comments along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='303-348'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nLIMIT 20"}]} {"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 names of the singers and number of concerts for each person?"}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)\\nWITH T2.name AS name, count(T2.singer_id) AS count\\nRETURN name,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the key_id for Keyword combined with the title for Article!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.key_id AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.title AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many different industries are the companies in?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN COUNT(DISTINCT c.Industry)"}]} {"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 with a centrality of 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality = 1.0\\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": "List the businesses that have a review mentioning 'breakfast'."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'breakfast'\\nRETURN b.name"}]} {"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 SISSA: 39/99/FM/GEO, by exactly two different types of relationships?"}, {"role": "assistant", "content": "39/99/FM/GEO, by exactly two different types of relationships?\nA: MATCH (a:Report{report_no:'SISSA: 39/99/FM/GEO'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"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 11!"}, {"role": "assistant", "content": "MATCH (n:Topic {cluster:'11'})\\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)\\nWITH g, count(v) AS videoCount\\nORDER BY videoCount DESC\\nLIMIT 3\\nRETURN g.name AS genre, videoCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Categories where specifications is math.DS, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.DS'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 57aa19619324dcd39039c52e67002af3!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id <> '57aa19619324dcd39039c52e67002af3'\\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": "List the labels of users with an area less than 2 and a size greater than 1."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area < 2 AND u.size > 1\\nRETURN u.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Report for which report_no is SISSA: 39/99/FM/GEO!"}, {"role": "assistant", "content": "39/99/FM/GEO!\nA: MATCH (a:Report{report_no:'SISSA: 39/99/FM/GEO'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the card numbers of members from Kentucky?"}, {"role": "assistant", "content": "MATCH (Member:Member)\\nWHERE toLower(Member.Hometown) CONTAINS \"kentucky\"\\nRETURN Member.Card_Number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the title and the comments for those Article where title starts with O!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH 'O'\\nRETURN n.title AS title, 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": "Which supplier (`supplierID`) supplies the product with the highest `unitPrice`?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:SUPPLIES]-(s:Supplier)\\nRETURN s.supplierID, p.productName, p.unitPrice\\nORDER BY p.unitPrice 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 first 3 genres associated with movies that have been rated by at least 5 different users?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)<-[r:RATED]-(u:User)\\nWITH g, m, count(DISTINCT u) AS userCount\\nWHERE userCount >= 5\\nRETURN g.name AS genre\\nORDER BY userCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is Maciej and 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 (a:Author{first_name:'Maciej'}), (b: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 EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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 stadium name and the number of concerts in each stadium."}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWITH T2.Name AS Name, count(T1.Stadium_ID) AS count\\nRETURN Name,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "What is maximum group equity shareholding of the companies?"}, {"role": "assistant", "content": "MATCH (oc:OperateCompany)\\nRETURN MAX(oc.Group_Equity_Shareholding)"}]} {"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 characters have interacted with \"Cersei-Lannister\" in book 45?"}, {"role": "assistant", "content": "MATCH (c:Character {name: \"Cersei-Lannister\"})-[:INTERACTS45 {book: 45}]-(other)\\nRETURN other.name AS character_name"}]} {"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": "Fetch the article_id of the Article that are linked via HAS_DOI to more than three DOI, and list DOI doi_id and DOI counts, ordering by DOI count and limiting to the top six results!"}, {"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, COLLECT(m.doi_id) as doi_id\\nWHERE count > 3\\nRETURN article_id, count, doi_id\\nORDER BY count\\nLIMIT 6"}]} {"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 Commun.Math.Phys or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'Commun.Math.Phys' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the membership level with the most people?"}, {"role": "assistant", "content": "MATCH (n:Member)\\nWITH n.Level AS level, COUNT(*) AS count\\nRETURN level\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the technician whose team is not 'NYY'?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE t.Team <> \"NYY\"\\nRETURN t.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the affiliation and the author_id for those Author where affiliation starts with u!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation STARTS WITH 'u'\\nRETURN n.affiliation AS affiliation, n.author_id AS author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Journal combined with the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:DOI)\\nRETURN m.doi_id AS Records"}]} {"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": "Fetch the comments of the Article that are linked via WRITTEN_BY to more than three Author, and list Author affiliation 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.comments AS comments, count(m) AS count, COLLECT(m.affiliation) as affiliation\\nWHERE count > 3\\nRETURN comments, count, affiliation\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the campus fee of \"San Jose State University\" in year 1996?"}, {"role": "assistant", "content": "MATCH (n:Campus {Campus: \"San Jose State University\"})<-[:TEACHES]-(fee:CsuFee {Year: 1996}) return fee.CampusFee"}]} {"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": "How many paths are there between Author where last_name is Mason and Article, for which title equals $A_{\\infty}$-structures on an elliptic curve?"}, {"role": "assistant", "content": "MATCH p=(a:Author{last_name:'Mason'})-[*]->(d:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})\\nRETURN count(p)"}]} {"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 Chow groups of weighted hypersurfaces and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.title = 'Chow groups of weighted hypersurfaces'\\nRETURN properties(b) AS Article_props, properties(n) AS props"}]} {"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": "How many actors are featured in the film 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 \"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"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all distinct publishers for books."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN DISTINCT b.Publisher"}]} {"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 where the user and moderator have the same name."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWHERE s.name = u.name\\nRETURN s\\nLIMIT 5"}]} {"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": "Look for the category_id of the Categories that is not related to the Journal with the name J.Diff.Eq!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Journal {name: 'J.Diff.Eq'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_id is 9301481d98615f874763a17d18e2dc92 and Report, for which report_no is HU-IAS/K-8, DPSU-99-8, RIMS-1266?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'9301481d98615f874763a17d18e2dc92'}), (b:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})\\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 \"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 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.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": "List the actors who have worked in movies with a runtime over 3 hours."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWHERE m.runtime > 180\\nRETURN DISTINCT 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 is the name of the data center that contains the router 'DC1-R-2'?"}, {"role": "assistant", "content": "MATCH (r:Router{name: 'DC1-R-2'})<-[:CONTAINS]-(dc:DataCenter)\\nRETURN dc.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 3 oldest movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.year 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 profile image URLs of users who follow 'neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(:Me {screen_name: 'neo4j'})\\nRETURN u.profile_image_url"}]} {"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 officers who are connected to addresses in Apia, Samoa."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:registered_address]->(a:Address)\\nWHERE a.address CONTAINS \"Apia\" AND a.countries = \"Samoa\"\\nRETURN o.name AS OfficerName, a.address AS Address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "What is the description of the restaurant type Sandwich?"}, {"role": "assistant", "content": "MATCH (r:RestaurantType)\\nWHERE r.ResTypeName = \"Sandwich\"\\nRETURN r.ResTypeDescription"}]} {"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": "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 pages on 537-560!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '537-560'}]->(m)\\nWHERE n.article_id='5145'\\nRETURN m.journal_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": "Identify the first 3 tweets mentioning 'Neo4j' that also tag a hashtag and were created in 2021."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'}), (t)-[:TAGS]->(h:Hashtag)\\nWHERE t.created_at >= datetime('2021-01-01T00:00:00Z') AND t.created_at <= datetime('2021-12-31T23:59:59Z')\\nRETURN t\\nLIMIT 3"}]} {"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.AT and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'math.AT'\\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 \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title for Article combined with the name for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title 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": "What is the name and capacity for the stadium with highest average attendance?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN stadium.name,stadium.capacity\\nORDER BY stadium.average 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 names of all applications that depend on the process named '8966'?"}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})<-[:DEPENDS_ON]-(a:Application)\\nRETURN 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 first 3 products with a discontinued status and a reorder level greater than 15."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = true AND p.reorderLevel > 15\\nRETURN p\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the ids of all the employees who authorize document destruction?"}, {"role": "assistant", "content": "MATCH (d:DocumentsToBeDestroyed)\\nRETURN DISTINCT d.Destruction_Authorised_by_Employee_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": "List the first 3 users who have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.followers > 10000\\nRETURN u.name, u.screen_name, u.followers\\nORDER BY u.followers DESC\\nLIMIT 3"}]} {"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 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 (n:Topic)\\nWHERE n.description CONTAINS '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 n AS node\\nUNION ALL\\nMATCH (m:Topic)\\nWHERE m.label CONTAINS '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 m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to 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 list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.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 properties(b) AS Article_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Categories and Report!"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r1]-(n)-[r2]->(d:Report)\\nRETURN labels(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": "Find entities that are of the type 'FOREIGN FORMED CORPORATION'."}, {"role": "assistant", "content": "MATCH (e:Other {type: 'FOREIGN FORMED CORPORATION'})\\nRETURN e.name AS entity_name, e.incorporation_date AS incorporation_date, e.jurisdiction AS jurisdiction, e.jurisdiction_description AS jurisdiction_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 author_id or last_name contains a95ff40457bf3cae9c6852c6a14937fa!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS 'a95ff40457bf3cae9c6852c6a14937fa'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'a95ff40457bf3cae9c6852c6a14937fa'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Advisor 1121 has how many students?"}, {"role": "assistant", "content": "MATCH (s:Student {Advisor:1121})\\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": "List the top 5 streams based on their creation date."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name, s.createdAt\\nORDER BY s.createdAt DESC\\nLIMIT 5"}]} {"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=A.!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'A.'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 3 officers based on the number of entities they are connected to."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Entity)\\nWITH o, COUNT(e) AS entityCount\\nORDER BY entityCount DESC\\nLIMIT 3\\nRETURN o.name AS officerName, entityCount"}]} {"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 with names starting with 'Z'."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name STARTS WITH 'Z'\\nRETURN b\\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 lowest 'degree' value among characters in community 712?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 712})\\nWITH c.degree AS degrees\\nRETURN min(degrees)"}]} {"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 appeared in movies released in the 'Comedy' genre?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Comedy'})\\nRETURN DISTINCT a.name"}]} {"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 LaTeX2e, 36 pages ; Some misprints are corrected, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.comments CONTAINS 'LaTeX2e, 36 pages ; Some misprints are corrected'\\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": "How many officers have the same name but different icij_ids?"}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWITH o.name AS officer_name, collect(DISTINCT o.icij_id) AS icij_ids, count(*) AS num_officers\\nWHERE size(icij_ids) > 1\\nRETURN count(*) AS num_officer_name_conflicts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "How many assessment notes are there in total?"}, {"role": "assistant", "content": "MATCH (n:AssessmentNote)\\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": "What are the ship cities for orders that included the product 'Chai'?"}, {"role": "assistant", "content": "MATCH (p:Product {productName: 'Chai'})<-[:ORDERS]-(o:Order)\\nRETURN DISTINCT o.shipCity AS shipCity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the last_name for Author combined with the name for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.last_name AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.name 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": "What is the name of the person with an id of 63303?"}, {"role": "assistant", "content": "MATCH (p:Person {id: 63303})\\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 are the top 3 most common languages spoken in the movies directed by Steven Spielberg?"}, {"role": "assistant", "content": "MATCH (d:Director {name: \"Steven Spielberg\"})-[:DIRECTED]->(m:Movie)\\nUNWIND m.languages AS language\\nWITH language, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 3\\nRETURN language, 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 is the average unitPrice of products ordered by customers based in 'Austria'?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE c.country = 'Austria'\\nWITH avg(toFloat(o.unitPrice)) AS averagePrice\\nRETURN averagePrice"}]} {"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 most recent nodes in the category Other."}, {"role": "assistant", "content": "MATCH (o:Other)\\nRETURN o\\nORDER BY o.lastEditTimestamp DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with DOI where name is 10.1006/jnth.2000.2616 and share a common property with Categories, for which specifications equals cond-mat.soft?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1006/jnth.2000.2616'})-[r]->(n), (d:Categories{specifications:'cond-mat.soft'})\\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": "Show the first 3 questions with the most upVotes and answered status."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q\\nORDER BY q.upVotes 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 actors who have worked in movies with a budget over $100 million."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nMATCH (p:Person)-[:CAST_FOR]->(m)\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Keyword for which key_id is d8ed805e2dd529e548ead28198edd980, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d8ed805e2dd529e548ead28198edd980'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2014-11-11 and DOI, with doi_id equal 46c2037fac5c38acd01bee5dde73c8e0, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2014-11-11'})-[*]-(e:DOI{doi_id:'46c2037fac5c38acd01bee5dde73c8e0'}))\\nRETURN nodes(p)"}]} {"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": "How many paths are there between Categories where specifications is cs.CC and Article, for which article_id equals 1010?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'cs.CC'})-[*]->(d:Article{article_id:'1010'})\\nRETURN count(p)"}]} {"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 1071, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{article_id:'1071'})-[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 \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is A. and Article, for which comments is Latex, 9 pages, no figures?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'A.'}), (b:Article{comments:'Latex, 9 pages, no figures'})\\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": "Fetch the distinct values of the abstract from Article where either comments is 23 pages, 1 figure or abstract is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = '23 pages, 1 figure' OR n.abstract IS NOT NULL\\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 5 actors have the most roles listed as uncredited?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie)\\nWHERE r.role CONTAINS \"uncredited\"\\nRETURN a.name, count(r) AS uncreditedRoles\\nORDER BY uncreditedRoles 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 the top 3 movies with the lowest number of votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.votes\\nORDER BY m.votes ASC\\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": "Show the entities connected to 'ORION HOUSE SERVICES (HK) LIMITED ROOM 1401; 14/F.'"}, {"role": "assistant", "content": "MATCH (a:Address {address: \"ORION HOUSE SERVICES (HK)\\nLIMITED ROOM 1401; 14/F.\"})-[:registered_address]-(e:Entity)\\nRETURN e"}]} {"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 is the name and country of origin of every singer who has a song with the word 'Hey' in its title?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Song_Name =~'.*[H|h]ey.*'\\nRETURN singer.Name,singer.Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where doi_id is 01c710839626aa78f11824682bccef1b?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'01c710839626aa78f11824682bccef1b'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"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 2008!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2010-06-18' AND date(n.update_date).year = 2008\\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 has the highest 'book1BetweennessCentrality' among all characters? Show top 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality 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 in 'Missoula' have an address starting with '2'?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.city = 'Missoula' AND b.address STARTS WITH '2'\\nRETURN b.name, b.address"}]} {"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 is the average, minimum, and maximum age of all singers from France?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.country = 'France'\\nRETURN avg(singer.age),min(singer.age),max(singer.age)"}]} {"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=Amnon!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Amnon'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 is the name and country of origin of every singer who has a song with the word 'Hey' in its title?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.song_name =~'.*[H|h]ey.*'\\nRETURN singer.name,singer.country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597 and share a common property with Categories, for which specifications equals nlin.SI?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->(n), (d:Categories{specifications:'nlin.SI'})\\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": "List the top 3 tweets with hashtags posted by 'neo4j'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN t.text AS tweet, h.name AS hashtag\\nORDER BY t.created_at 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 chatters who are also moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWHERE exists { \\nMATCH (u)-[:MODERATOR]->(s) }\\nRETURN s"}]} {"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 math.AT and Article, for which comments is 44 pages?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.AT'}), (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": "Which persons born after 1980 have acted in, directed, or produced any movies?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born > 1980 AND ( (p)-[:ACTED_IN]->(:Movie) OR (p)-[:DIRECTED]->(:Movie) OR (p)-[:PRODUCED]->(:Movie) )\\nRETURN 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": "How many filings have a `begin_date` in the month of June?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin_date CONTAINS \"Jun\"\\nRETURN count(f)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the ids of all employees who have authorized destruction."}, {"role": "assistant", "content": "MATCH (n:DocumentsToBeDestroyed)\\nRETURN DISTINCT n.Destruction_Authorised_by_Employee_ID"}]} {"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 by area size who have relations with 'vtcodes.dev'."}, {"role": "assistant", "content": "MATCH (u:User)-[:INTERACTED]->(:User {label: 'vtcodes.dev'})\\nRETURN u.label AS UserLabel, u.area AS UserArea\\nORDER BY u.area 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": "Provide details of the top 3 users by reputation who have asked questions about 'aws-lambda'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nRETURN u.display_name AS userName, u.reputation AS reputation, u.link AS userLink\\nORDER BY u.reputation 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": "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.title, q.link, q.createdAt\\nORDER BY q.createdAt\\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 location and name for all stadiums with a capacity between 5000 and 10000."}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nWHERE 5000<=stadium.Capacity<=10000\\nRETURN stadium.Location,stadium.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments and the number of nodes connected to them via PUBLISHED_IN with meta = 217."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '217'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"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 first 3 people who have produced, directed, and written the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE exists { (p)-[:DIRECTED]->(m) } AND exists { (p)-[:WROTE]->(m) }\\nRETURN p.name\\nLIMIT 3"}]} {"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 13!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id =~'13.*'\\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 3 users have the highest average movie rating with at least 20 rated movies?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, COUNT(r) AS ratedMovies, AVG(r.rating) AS avgRating\\nWHERE ratedMovies >= 20\\nRETURN u.name AS userName, avgRating\\nORDER BY avgRating DESC\\nLIMIT 3"}]} {"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 Commun.Math.Phys!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Commun.Math.Phys'})-[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 }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which affiliation is unspecified!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[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 the first 3 genres with movies having an average IMDb rating under 5."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.imdbRating < 5\\nWITH g, avg(m.imdbRating) AS avgRating\\nORDER BY avgRating ASC\\nRETURN g.name, avgRating\\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 associated with streams that have more than 10,000 total views."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 10000\\nRETURN g.name AS game, count(*) AS stream_count\\nORDER BY stream_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": "Which 3 customers have purchased the most orders?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\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 \"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 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 are WRITTEN_BY linked to a Author?"}, {"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:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many campuses exist are in the county of LA?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.County = \"Los Angeles\"\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the names of the companies whose headquarters are not located in \"USA\"."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters <> 'USA'\\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": "Find out which 3 games are most frequently associated with streams having a 'VIP' relationship."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(:User)\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN g.name AS game, count(*) AS frequency\\nORDER BY frequency DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different district names in order of descending city area?"}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Area DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of musicals with nominee \"Bob Fosse\"?"}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWHERE m.Nominee = \"Bob Fosse\"\\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": "Which users have rated movies directed by directors born after 1960?"}, {"role": "assistant", "content": "MATCH (u:User)-[:RATED]->(m:Movie)<-[:DIRECTED]-(d:Director)\\nWHERE d.born > date('1960-01-01')\\nRETURN DISTINCT u"}]} {"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 runtime longer than 3 hours?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.runtime > 180\\nWITH a, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN a.name AS actorName, movieCount\\nLIMIT 1"}]} {"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": "Look for the author_id of the Author that is not related to the Categories with the category_id 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Categories {category_id: '4b7053a7def1fb0250a0e83ebd2f9a7b'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.author_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": "What is the average number of interfaces routed by egress routers in the data center?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(er:Egress)-[:ROUTES]->(interface:Interface)\\nWITH er, size(collect(interface)) AS numInterfaces\\nRETURN avg(numInterfaces) AS averageInterfacesPerEgress"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where last_name is Chakrabarti and Author, for which first_name is Marco?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Chakrabarti'}), (b:Author{first_name:'Marco'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of candidates."}, {"role": "assistant", "content": "MATCH (c:Candidate)\\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": "What are the top 5 highest-grossing movies of 2014?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 2014 AND m.revenue IS NOT NULL\\nRETURN m.title, m.revenue\\nORDER BY m.revenue 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 title of the movie with the highest number of votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.votes\\nORDER BY m.votes 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": "List all the businesses along 'W Broadway St' and their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address CONTAINS 'W Broadway St'\\nRETURN b.name AS BusinessName, c.name AS Category"}]} {"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 `productName` of the product with the lowest `unitPrice` that has been ordered at least once?"}, {"role": "assistant", "content": "MATCH (order:Order)-[orderLine:ORDERS]->(product:Product)\\nWITH min(toFloat(orderLine.unitPrice)) AS minPrice\\nMATCH (order:Order)-[orderLine:ORDERS]->(product:Product)\\nWHERE toFloat(orderLine.unitPrice) = minPrice\\nRETURN product.productName"}]} {"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": "Retrieve the specifications for Categories that is linked through a HAS_CATEGORY relationship with the Article where title is Capital allocation for credit portfolios with kernel estimators!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.title='Capital allocation for credit portfolios with kernel estimators'\\nRETURN m.specifications"}]} {"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 mention the user with the screen name 'neo4j'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {screen_name: 'neo4j'})\\nRETURN t\\nORDER BY t.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Article for which 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, with their relationship types and count these types!"}, {"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]->(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": "Name the Racks in Zone 1 that hold more than 3 Machines."}, {"role": "assistant", "content": "MATCH (r:Rack)-[:HOLDS]->(m:Machine)\\nWHERE r.zone = 1\\nWITH r, count(m) as machineCount\\nWHERE machineCount > 3\\nRETURN r.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": "Which nodes are at the end of a path starting from Article, where title is Geometrical Tools for Quantum Euclidean Spaces, through Journal via PUBLISHED_IN with meta 217?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Geometrical Tools for Quantum Euclidean Spaces'})-[:PUBLISHED_IN {meta: '217'}]->(c:Journal)-[r]->(n)\\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": "Find the top 5 tweets with the highest number of favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t\\nORDER BY t.favorites 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 for which category_id is 775271e2a118257e7308fe4c21c9d0b4!"}, {"role": "assistant", "content": "MATCH (n:Categories {category_id:'775271e2a118257e7308fe4c21c9d0b4'})\\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 with a jurisdiction of 'SAM' and their jurisdiction descriptions."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction = 'SAM'\\nRETURN e.name AS entity_name, e.jurisdiction_description AS jurisdiction_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 suppliers whose products have never been discontinued and have a unitsInStock less than 20."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.discontinued = false AND p.unitsInStock < 20\\nRETURN s\\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 all users who have asked questions that were tagged with 'graphql-subscriptions' and sort them by reputation."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'graphql-subscriptions'})\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation 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": "How many streams has each team associated with them?"}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nRETURN t.name AS TeamName, count(s) AS NumberOfStreams"}]} {"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 switch in rack 8 that routes traffic for the network with IP 10.4?"}, {"role": "assistant", "content": "MATCH (n:Network {ip: '10.4'})-[:ROUTES]->(i:Interface)<-[:ROUTES]-(s:Switch {rack: 8})\\nRETURN s.ip"}]} {"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 that are concerned in filings with an amount greater than 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWHERE f.amount > 1000000\\nRETURN e\\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 profile image URL and follow 'Neo4j'? Show the first 3."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(:Me {screen_name: 'neo4j'})\\nWHERE u.profile_image_url IS NOT NULL\\nRETURN u.screen_name, u.profile_image_url\\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 languages are associated with streams that have over 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 1000000\\nRETURN COUNT(DISTINCT l.name) AS numberOfLanguages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the number of trains"}, {"role": "assistant", "content": "MATCH (s:Station)-[r:SERVES]->(t:Train)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the receipt date of the document with id 3?"}, {"role": "assistant", "content": "MATCH (d:Document {document_id: 3})\\nRETURN d.receipt_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the official names of cities, ordered descending by population?"}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN c.Official_Name\\nORDER BY c.Population 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": "Identify the top 3 games played by streams with a description containing 'hilarious moments'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.description CONTAINS 'hilarious moments'\\nRETURN g.name, count(s) AS streams_count\\nORDER BY streams_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": "Find title 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.title AS title, 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": "What is the title of the movie with the oldest director?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nRETURN m.title, p.born\\nORDER BY p.born ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where cluster is 10 and Journal, for which name equals J.Diff.Eq?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'10'})-[*]->(d:Journal{name:'J.Diff.Eq'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to UpdateDate for which update_date is 2015-06-26, and what are their relationships to UpdateDate?"}, {"role": "assistant", "content": "MATCH (c:UpdateDate)<-[r]-(n)\\nWHERE c.update_date = '2015-06-26'\\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": "Find the actors who have acted in movies with a release year that is a prime number."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE all(i IN range(2, toInteger(ceil(sqrt(m.released))))\\nWHERE m.released % i <> 0)\\nRETURN DISTINCT 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": "Which 3 movies have the most diverse set of genres associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH m, count(distinct g) as genreCount\\nORDER BY genreCount DESC\\nLIMIT 3\\nRETURN m.title as movie, genreCount as numberOfGenres"}]} {"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": "\"apoc not working\""}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.title CONTAINS 'apoc not working'\\nRETURN q, 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": "Identify the top 5 tweets linking to the most popular external sources."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:USING]->(s:Source)\\nWITH s, count(t) AS tweets_count\\nORDER BY tweets_count DESC\\nLIMIT 5\\nMATCH (t:Tweet)-[:USING]->(s)\\nRETURN t, s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of institutions."}, {"role": "assistant", "content": "MATCH (n:Inst)\\nRETURN count(*) 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": "List the characters with a centrality between 0.2 and 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality >= 0.2 AND c.centrality <= 0.5\\nRETURN c.name, c.centrality"}]} {"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 more than one stream? List the top 3."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, COUNT(s) AS streamCount\\nWHERE streamCount > 1\\nRETURN u.name AS userName, streamCount\\nORDER BY streamCount 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": "Identify the first 5 users who have interacted with a user labeled 'dwither.bsky.social'."}, {"role": "assistant", "content": "MATCH (u:User {label: 'dwither.bsky.social'})-[:INTERACTED]->(interactedUser:User)\\nRETURN interactedUser\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Which campus was opened between 1935 and 1939?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year >= 1935 AND c.Year <= 1939\\nRETURN c.Campus"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many gas station are opened between 2000 and 2005?"}, {"role": "assistant", "content": "MATCH (gs:GasStation)\\nWHERE gs.Open_Year >= 2000 AND gs.Open_Year <= 2005\\nRETURN count(gs)"}]} {"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 different users have reviewed 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN COUNT(DISTINCT u.userId) AS numberOfUsers"}]} {"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 placed for each product?"}, {"role": "assistant", "content": "MATCH ()-[:ORDERS]->(p:Product)\\nWITH p.productID AS productID, count(*) AS orderCount\\nRETURN productID, orderCount"}]} {"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\\nWITH p, count(m) AS moviesReviewed\\nORDER BY moviesReviewed DESC\\nLIMIT 1\\nRETURN p.name AS reviewer, moviesReviewed"}]} {"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 $, skip the first 2 records and return the next 2 records of title!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH '$'\\nWITH n.title AS title SKIP 2\\nLIMIT 2\\nRETURN title"}]} {"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 45009bf7f2e3f4f275de6d92deab7b27!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = '45009bf7f2e3f4f275de6d92deab7b27'\\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 3 users have given the highest average rating to movies they've rated?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, avg(r.rating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN u.name AS user, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many UpdateDate have update_date between January 1, 2010 and January 1, 2015?!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date >= date('2010-01-01') AND n.update_date <= date('2015-01-01')\\nRETURN count(n) AS UpdateDates"}]} {"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 Zones that have a size of 16."}, {"role": "assistant", "content": "MATCH (z:Zone {size: 16})\\nRETURN z\\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 movies where the director and writer are the same person."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(d:Person)\\nMATCH (m)<-[:WROTE]-(w:Person)\\nWHERE d = w\\nRETURN m.title, d.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 people have directed movies with the word \"Give\" in the title?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(p:Person)\\nWHERE m.title CONTAINS 'Give'\\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": "What are the first 3 packages with the highest price?"}, {"role": "assistant", "content": "MATCH (p:Package)\\nRETURN p.name AS package, p.price AS price\\nORDER BY p.price 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 are the top 5 questions with the highest score?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.score 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": "What is the 'key' of the User with the lowest 'y' value and an 'area' greater than the average 'area' of all Users?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH avg(u.area) AS average_area\\nMATCH (u:User)\\nWHERE u.area > average_area\\nRETURN min(u.y), u.key"}]} {"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 provide products in the 'Beverages' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Beverages'})<-[:PART_OF]-(p:Product)<-[:SUPPLIES]-(s:Supplier)\\nRETURN DISTINCT s.companyName\\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 \"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 220 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '220'}]->(m:Journal)\\nWHERE m.title < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the technicians and how many machines are they assigned to repair?"}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T2:Technician)\\nRETURN T2.Name, 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 3 actors have acted in movies and also directed movies?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE exists{ (p)-[:ACTED_IN]->(:Movie) } AND exists{ (p)-[:DIRECTED]->(:Movie) }\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"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 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 Journal with name Geom. Topol!"}, {"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:Journal{name:'Geom. Topol'})-[*]->(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 the Categories for which category_id is 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (n:Categories {category_id:'978aee6db23fc939cec71ac05eb15b7a'})\\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 is the average runtime of movies released in the year 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 2000\\nRETURN avg(m.runtime) AS average_runtime"}]} {"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 2014-11-11, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-11-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": "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.orderID, o.orderDate\\nORDER BY o.orderDate\\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": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Riemannian geometry of quantum groups and finite groups with\n nonuniversal differentials and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Riemannian geometry of quantum groups and finite groups with nonuniversal differentials'}) -[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 \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which buildings do not have any company office? Give me the building names."}, {"role": "assistant", "content": "MATCH (b:Building)\\nWHERE NOT ()-[:LOCATED_IN]->(b)\\nRETURN b.name"}]} {"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 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, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.abstract CONTAINS ' 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 n, TYPE(r)"}]} {"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 math.CA, along with the type of their relationship with Categories!"}, {"role": "assistant", "content": "MATCH (d:Categories)-[r]->(n)\\nWHERE d.specifications CONTAINS 'math.CA'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many companies are there?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all director names who have a movie in both year 1999 and 2000."}, {"role": "assistant", "content": "MATCH (m1:Movie), (m2:Movie)\\nWHERE m1.Year = 2000 AND m2.Year = 1999 AND m1.Director = m2.Director\\nRETURN m1.Director"}]} {"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 movie was produced in the 1970s with the highest number of actors\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1970 AND m.released < 1980\\nRETURN m.title AS movie, count(p) AS actor_count\\nORDER BY actor_count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "What is the email of the student with first name \"Emma\" and last name \"Rohan\"?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.first_name = \"Emma\" AND s.last_name = \"Rohan\"\\nRETURN s.email_address"}]} {"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": "Fetch title of the Article that are connected to Journal via PUBLISHED_IN where pages are at most 131-170!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.pages < '131-170'}\\nRETURN n.title AS title"}]} {"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 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 what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.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'\\nRETURN properties(n) AS props, 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": "List the first 5 Applications that depend on the Process with PID 8966."}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})<-[:DEPENDS_ON]-(a:Application)\\nRETURN a.name\\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": "How many users have a color other than '#FF7F50' and a size greater than 2?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.color <> '#FF7F50' AND u.size > 2\\nWITH count(*) AS numberOfUsers\\nRETURN numberOfUsers"}]} {"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 `sar_id`s of the filings where the `originator_bank` is \"CIMB Bank Berhad\" and the `beneficiary_bank` is \"Barclays Bank Plc\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank = \"CIMB Bank Berhad\" AND f.beneficiary_bank = \"Barclays Bank Plc\"\\nRETURN f.sar_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\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 UpdateDate where update_date is 2014-11-11 and share a common property with Author, for which first_name equals Jean-Francois?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-11-11'})-[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 \"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 highest total filing amount."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.code AS country_code, sum(f.amount) AS total_amount\\nORDER BY total_amount DESC\\nRETURN country_code, total_amount\\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 name of the user with userId 'u1'?"}, {"role": "assistant", "content": "MATCH (u:User {userId: 'u1'})\\nRETURN u.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 is the city of the customer with companyName 'Lonesome Pine Restaurant'?"}, {"role": "assistant", "content": "MATCH (c:Customer {companyName: 'Lonesome Pine Restaurant'})\\nRETURN c.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": "What are the top 3 directors who have directed movies with the most diverse set of actors?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH d, count(DISTINCT a) AS numActors\\nORDER BY numActors DESC\\nLIMIT 3\\nRETURN d.name AS director, numActors"}]} {"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 2014-11-11 and the year of the update_date is 2010!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2014-11-11' AND date(n.update_date).year = 2010\\nRETURN n.update_date AS update_date"}]} {"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": "Could you tell me what Toy Story is about?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Toy Story\"})\\nRETURN m.plot"}]} {"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": "Fetch abstract 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.abstract AS abstract"}]} {"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 are for businesses in the same state as 'Zootown Brew'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Zootown Brew'})\\nWITH b.state AS zootownState\\nMATCH (review:Review)-[:REVIEWS]->(business:Business)\\nWHERE business.state = zootownState\\nRETURN review"}]} {"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 with a language named 'ru' and a total view count below 10,000?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = 'ru' AND s.total_view_count < 10000\\nRETURN s\\nORDER BY s.createdAt\\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": "What are the different first names and ages of the students who do have pets?"}, {"role": "assistant", "content": "MATCH (T1:Student)-[T2:Has_Pet]-()\\nRETURN DISTINCT T1.Fname,T1.Age"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 were part of the 'Toy Story Collection' and have a runtime over 80 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: 'Toy Story Collection'})\\nWHERE m.runtime > 80\\nRETURN m.title, m.runtime\\nORDER BY m.runtime DESC\\nLIMIT 5"}]} {"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": "List the title of all cartoons in alphabetical order."}, {"role": "assistant", "content": "MATCH (cartoon:Cartoon)\\nRETURN cartoon.Title\\nORDER BY cartoon.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 user named 'itsbigchase' as a VIP?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'itsbigchase'})-[:VIP]->(s:Stream)\\nRETURN s"}]} {"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}"}, {"role": "user", "content": "Look for the abstract of the Article that is not related to the Keyword with the key_id 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Keyword {key_id: '5d6533e2a77e3daabc184ee8f2441597'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.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 locations and names of all stations with capacity between 5000 and 10000?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nWHERE 5000<=stadium.Capacity<=10000\\nRETURN stadium.Location,stadium.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 tags of the question asked by the user with the highest reputation."}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH u\\nORDER BY u.reputation DESC\\nLIMIT 1\\nMATCH (u)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nRETURN t.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 category (`categoryName`) has the highest number of discontinued products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.discontinued = TRUE\\nWITH c.categoryName AS categoryName, count(p) AS discontinuedCount\\nORDER BY discontinuedCount DESC\\nRETURN categoryName, discontinuedCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the name for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.name 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": "What are the top 5 genres with the most movies having a poster path that starts with '/rh'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\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 \"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 acted in movies directed by someone born in the same decade as them?"}, {"role": "assistant", "content": "MATCH (director:Person)-[:DIRECTED]->(movie:Movie)<-[:ACTED_IN]-(actor:Person)\\nWHERE director.born / 10 = actor.born / 10\\nRETURN DISTINCT actor.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 offer access to the 'Animation' genre."}, {"role": "assistant", "content": "MATCH (p:Package)-[:PROVIDES_ACCESS_TO]->(g:Genre {name: 'Animation'})\\nRETURN p\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of all people, ordered by their date of birth?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Name\\nORDER BY p.Date_of_Birth"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of buildings sorted in descending order of building height?"}, {"role": "assistant", "content": "MATCH (b:Building)\\nRETURN b.name\\nORDER BY b.Height 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": "Which users are amplified by 'Me'?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(user:User)\\nRETURN user.name AS user, user.screen_name AS handle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the name and the journal_id for those Journal where name starts with J!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name STARTS WITH 'J'\\nRETURN n.name AS name, n.journal_id AS journal_id"}]} {"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": "List all singer names in concerts in year 2014."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)-[]-(T3:concert)\\nWHERE T3.Year = 2014\\nRETURN T2.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Find all the campuses opened in 1958."}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year = 1958\\nRETURN c.Campus"}]} {"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 dependencies of the application 'crm' including indirect dependencies?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'crm'})\\nCALL { \\nWITH app \\nMATCH (app)-[:DEPENDS_ON*]->(dependency) \\nRETURN DISTINCT dependency }\\nRETURN count(dependency) AS TotalDependencies"}]} {"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 LaTeX2e, 36 pages ; Some misprints are corrected!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[*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": "List the names of three characters who have a book1BetweennessCentrality of 0."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality = 0.0\\nRETURN c.name\\nLIMIT 3"}]} {"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": "Find the shortest path between Author where first_name is J. Daniel and Article, with title equal Maslov class and minimality in Calabi-Yau manifolds, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{first_name:'J. Daniel'})-[*]-(e:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'}))\\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 reviewed movies with a rating higher than 90?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 90\\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": "Name the top 3 characters based on the sum of their book1PageRank and book45PageRank."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c, (c.book1PageRank + c.book45PageRank) AS totalPageRank\\nRETURN c.name AS characterName, totalPageRank\\nORDER BY totalPageRank DESC\\nLIMIT 3"}]} {"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}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 21 pages, AMS-LaTeX and Journal, with name equal Geom. Topol, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'21 pages, AMS-LaTeX'})-[*]-(e:Journal{name:'Geom. Topol'}))\\nRETURN nodes(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 is the average and maximum capacities for all stadiums ?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN avg(stadium.Capacity),max(stadium.Capacity)"}]} {"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 tags are most frequently used in questions?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nRETURN t.name AS tag, COUNT(q) AS frequency\\nORDER BY frequency 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 Randall!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.first_name = 'Randall'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which doctors have given a diagnosis of 'High Blood Pressure'?"}, {"role": "assistant", "content": "MATCH (d:Doctor)-[:GAVE_DIAGNOSIS]->(di:Diagnosis)-[:OF_TYPE]->(dt:DiagnosisType)\\nWHERE dt.description = 'High Blood Pressure'\\nRETURN d.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 top 3 processes that listen on port 80?"}, {"role": "assistant", "content": "MATCH (p:Process)-[:LISTENS]->(port:Port {port: 80})\\nRETURN p\\nORDER BY p.startTime DESC\\nLIMIT 3"}]} {"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": "List the name of singers in ascending order of net worth."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Name\\nORDER BY singer.Net_Worth_Millions ASC"}]} {"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.title, m.released\\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": "Who are the top 5 actors by the number of movies they acted in?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, COUNT(m) AS movieCount\\nRETURN p.name AS actor, movieCount\\nORDER BY movieCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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": "Fetch all the Article and return the comments and the number of nodes connected to them via PUBLISHED_IN with year = 2004."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.year = '2004'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"description\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Assignment\": {\n \"properties\": {\n \"maxScore\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"COMPLETED\",\n \"to\": \"Assignment\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_ASSIGNMENT\",\n \"to\": \"Assignment\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_ASSIGNMENT\",\n \"to\": \"Assignment\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"COMPLETED\",\n \"to\": \"Assignment\"\n }\n ],\n \"relationshipProperties\": {\n \"ENROLLED_IN\": {\n \"date\": \"DATE\"\n },\n \"COMPLETED\": {\n \"score\": \"INTEGER\",\n \"date\": \"DATE\"\n }\n }\n}"}, {"role": "user", "content": "What is the average age of students enrolled in the Physics course?"}, {"role": "assistant", "content": "MATCH (s:Student)-[:ENROLLED_IN]->(:Course {name: 'Physics'})\\nRETURN avg(s.age)"}]} {"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": "List the names and birth dates of people in ascending alphabetical order of name."}, {"role": "assistant", "content": "MATCH (people:people)\\nRETURN people.Name,people.Birth_Date\\nORDER BY people.Name ASC"}]} {"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 Geometry_7?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which doctors have prescribed medication for more than one patient?"}, {"role": "assistant", "content": "MATCH (d:Doctor)-[:GAVE_PRESCRIPTION]->(:Prescription)-[:OF_MEDICATION]->(:Medication)<-[:HAS_PRESCRIPTION]-(p:Patient)\\nWITH d, COUNT(DISTINCT p) AS numPatients\\nWHERE numPatients > 1\\nRETURN d"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_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 first_name A.!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Author {first_name: 'A.'})\\nWHERE NOT (n) --> (:Author)\\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": "Who are the first 3 actors who have starred in both comedies and dramas?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWHERE (m)-[:IN_GENRE]->(:Genre {name: 'Comedy'}) AND (p)-[:CAST_FOR]->(:Movie)-[:IN_GENRE]->(:Genre {name: 'Drama'})\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the last_name for Author combined with the update_date for UpdateDate, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.last_name AS Records\\nUNION\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"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 more than one officer linked to them and have a status of 'Active'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:officer_of]->(o:Officer)\\nWHERE e.status = 'Active'\\nWITH e, count(o) AS officerCount\\nWHERE officerCount > 1\\nRETURN e, officerCount"}]} {"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 in 'San Mateo' have been reviewed in September of any year?"}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})-[:REVIEWS]-(r:Review)\\nWHERE r.date.month = 9\\nRETURN count(DISTINCT b) AS NumberOfBusinessesReviewedInSeptember"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the last names of female students, ordered by age descending?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Sex = \"F\"\\nRETURN s.LName\\nORDER BY s.Age DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the title of the Article and the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Topic)\\nRETURN n.title, m.description\\nLIMIT 8"}]} {"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 It is well known that R^N has subspaces of dimension proportional to N on\nwhich the \\ell_1 norm is equivalent to the \\ell_2 norm; however, no explicit\nconstructions are known. Extending earlier work by Artstein--Avidan and Milman,\nwe prove that such a subspace can be generated using O(N) random bits.\n and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' It is well known that R^N has subspaces of dimension proportional to N on which the \\ell_1 norm is equivalent to the \\ell_2 norm; however, no explicit constructions are known. Extending earlier work by Artstein--Avidan and Milman, we prove that such a subspace can be generated using O(N) random bits. '})-[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 \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all director names who have a movie in the year 1999 or 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.Year = 1999 OR m.Year = 2000\\nRETURN m.Director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the grade taught in classroom 103."}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Classroom = 103\\nRETURN DISTINCT l.Grade"}]} {"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 users who are moderators in the most number of streams with an 'en' language setup."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)-[:HAS_LANGUAGE]->(:Language {name: 'en'})\\nWITH u, count(s) AS num_moderated_streams\\nORDER BY num_moderated_streams DESC\\nLIMIT 5\\nRETURN u.name AS user, num_moderated_streams"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve all the last names of authors in alphabetical order."}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.lname\\nORDER BY a.lname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show all locations where a gas station for company with market value greater than 100 is located."}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(g:GasStation)\\nWHERE c.Market_Value > 100\\nRETURN g.Location"}]} {"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 centrality greater than 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality > 0.5\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the distinct themes of journals."}, {"role": "assistant", "content": "MATCH (j:Journal)\\nRETURN DISTINCT j.Theme"}]} {"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 in stock in the category 'Dairy Products'?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN p.productName, p.unitsInStock\\nORDER BY p.unitsInStock 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 actors who have starred in the most movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWITH p, count(*) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN 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": "Who has directed the most movies released after 2000 and what are those movies?"}, {"role": "assistant", "content": "MATCH (director:Person)-[:DIRECTED]->(movie:Movie)\\nWHERE movie.released > 2000\\nWITH director, count(movie) AS movieCount, collect(movie.title) AS movies\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN director.name AS directorName, movies"}]} {"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.1016/S0393-0440(00)00003-6!"}, {"role": "assistant", "content": "MATCH (n:DOI {name:'10.1016/S0393-0440(00)00003-6'})\\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": "Which questions have been asked by users who have asked more than 20 questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, COUNT(q) AS questionCount\\nWHERE questionCount > 20\\nMATCH (u)-[:ASKED]->(q:Question)\\nRETURN q.title AS questionTitle, q.id AS questionId, u.display_name AS userName"}]} {"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 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., by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e: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.'})-[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 }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author for which last_name is Burnol, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.last_name = 'Burnol'\\nRETURN properties(n) AS props, 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 \"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 abstract and the count of Journal linked via PUBLISHED_IN where meta is not '248', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta <> '248'\\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 \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 that were produced in the country 'United States of America' and have a revenue over 50 million dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'United States of America'})\\nWHERE m.revenue > 50000000\\nRETURN m\\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 videos with the least revenue."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.revenue IS NOT NULL\\nRETURN v\\nORDER BY v.revenue ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to DOI where name contains 10.1023/A:1004807104626, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "1004807104626, along with the type of their relationship with DOI!\nA: MATCH (d:DOI)-[r]->(n)\\nWHERE d.name CONTAINS '10.1023/A:1004807104626'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Report the number of students in each classroom."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN n.Classroom AS classroom, COUNT(*)\\nORDER BY classroom"}]} {"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 users by the number of streams they moderate."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, count(s) AS moderated_streams\\nORDER BY moderated_streams DESC\\nLIMIT 5\\nRETURN u.name, moderated_streams"}]} {"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": "Find title of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where meta is 18!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '18'\\nRETURN n.title AS title, count(m) AS 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 `sar_id`s of filings where the `beneficiary_bank` is located in a country with a `name` that does not contain the letter \"a\"."}, {"role": "assistant", "content": "MATCH (f:Filing)-[r:BENEFITS]->(e:Entity)\\nMATCH (e:Entity)-[c:COUNTRY]->(country:Country)\\nWHERE NOT country.name CONTAINS 'a'\\nRETURN f.sar_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 actor acted in Pearl Harbour?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.title = \"Pearl Harbour\"\\nRETURN p.name"}]} {"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.1007/s00365-002-0501-6, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00365-002-0501-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 \"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 most frequently ordered products."}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(p:Product)\\nRETURN p.productName, COUNT(o) AS orderCount\\nORDER BY orderCount 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 businesses in 'San Mateo' with reviews mentioning 'car wash'."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'car wash'\\nRETURN b.name, b.address"}]} {"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": "Find Journal that has a journal_id which begins with j, and is linked to Article via PUBLISHED_IN relationship, where Article has comments 6 pages!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '6 pages'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'j'\\nRETURN m"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of courses with more than 2 credits."}, {"role": "assistant", "content": "MATCH (c:Course)\\nWHERE c.Credits > 2\\nRETURN count(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 'Missoula' that have 'Brewing' in their name."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.city = 'Missoula' AND b.name CONTAINS 'Brewing'\\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": "List the filings where the beneficiary bank country is 'United Kingdom'."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nRETURN f"}]} {"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 that have the most connections to countries through the relationship [:COUNTRY]."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN e, count(c) AS connections\\nORDER BY connections DESC\\nLIMIT 5"}]} {"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": "List the name of the conductor with the most years of work."}, {"role": "assistant", "content": "MATCH (conductor:conductor)\\nRETURN conductor.Name\\nORDER BY conductor.Year_of_Work 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": "Which 5 actors have acted in the most commercially successful movies (highest revenue)?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, m\\nORDER BY m.revenue DESC\\nWITH a, collect(m) AS movies, sum(m.revenue) AS totalRevenue\\nORDER BY totalRevenue DESC\\nLIMIT 5\\nRETURN a.name AS actorName, totalRevenue, [movie IN movies | movie.title] AS movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many gas companies are there?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN count(*)"}]} {"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 Capital allocation for credit portfolios with kernel estimators!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Capital allocation for credit portfolios with kernel estimators'}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\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 bank and beneficiary bank are the same entity."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)<-[:BENEFITS]-(f)\\nRETURN f.sar_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 first 3 persons who have directed a movie with a budget over 150 million USD."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CREW_FOR {job: 'Director'}]->(m:Movie)\\nWHERE m.budget > 150000000\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of farms."}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN 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": "Display all Filings where the originator and beneficiary banks are different."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank <> f.beneficiary_bank\\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 top 3 movies with the most diverse set of spoken languages?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.languages, size(m.languages) AS language_count\\nORDER BY language_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List official names of cities in descending order of population."}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN c.Official_Name\\nORDER BY c.Population DESC"}]} {"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": "Fetch eight samples of the specifications of the Categories and the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nMATCH (m:UpdateDate)\\nRETURN n.specifications, m.update_date\\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 is the colour group code of the product named 'Esmeralda Fluff'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Esmeralda Fluff'})\\nRETURN a.colourGroupCode"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Categories and Topic, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*]-(n)-[*]-(b: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": "What is the name of the business with businessId 'b7'?"}, {"role": "assistant", "content": "MATCH (b:Business {businessId: 'b7'})\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "What is the velocity of the pilot named 'Thompson'?"}, {"role": "assistant", "content": "MATCH (f:Flight)-[:LANDS_AT]->(a:Airport), (f)-[:OPERATED_BY]->(oc:OperateCompany)\\nWHERE f.Pilot = 'Thompson'\\nRETURN avg(f.Velocity)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Keyword where key_id is 0e45607b74a52b79f39c242abf265272?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[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": "Name the top 5 production companies by the number of movies produced."}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWITH pc, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5\\nRETURN pc.name AS production_company, movie_count"}]} {"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 2015-06-26 and the year of the update_date is 2017!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2015-06-26' AND date(n.update_date).year = 2017\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What address was the document with id 4 mailed to?"}, {"role": "assistant", "content": "MATCH (a:Address)-[:IS_LISTED_IN]->(d:Document)\\nWHERE d.document_id = 4\\nRETURN a.address_details"}]} {"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 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., and also to another node?"}, {"role": "assistant", "content": "MATCH (a: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.'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 the intermediaries with a status of 'ACTIVE'."}, {"role": "assistant", "content": "MATCH (i:Intermediary {status: 'ACTIVE'})\\nRETURN i"}]} {"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)\\nWITH s, g\\nORDER BY s.followers DESC\\nLIMIT 3\\nRETURN g.name AS game_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": "Provide the names of entities that have the same name as other entities."}, {"role": "assistant", "content": "MATCH (e1:Entity)-[:same_name_as]->(e2:Entity)\\nRETURN e1.name AS EntityName1, e2.name AS EntityName2"}]} {"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 and address of the business with the oldest review date?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, r\\nORDER BY r.date ASC\\nLIMIT 1\\nRETURN b.name AS businessName, b.address AS businessAddress"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of students that have at least one grade \"B\"."}, {"role": "assistant", "content": "MATCH (e:EnrolledIn)\\nWHERE e.Grade = \"B\"\\nRETURN COUNT(DISTINCT e.StuID)"}]} {"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 users from 'CA'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.state = 'CA'\\nRETURN r"}]} {"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 director directed the least movies among the movies that the actor who acted in the most movies acted in?\""}, {"role": "assistant", "content": "MATCH (actor:Person)-[:ACTED_IN]->(m:Movie)\\nWITH actor, count(m) AS moviesActed\\nORDER BY moviesActed DESC\\nLIMIT 1\\nMATCH (actor)-[:ACTED_IN]->(m)<-[:DIRECTED]-(director:Person)\\nWITH director, count(m) AS moviesDirected\\nORDER BY moviesDirected ASC\\nLIMIT 1\\nRETURN director.name AS directorName, moviesDirected"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Give me the name and description of the location with code x."}, {"role": "assistant", "content": "MATCH (r:RefLocation)\\nWHERE r.Location_Code = \"x\"\\nRETURN r.Location_Name, r.Location_Description"}]} {"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: 21 pages, AMS-LaTeX and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '21 pages, AMS-LaTeX'}) -[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": "List all businesses that have at least two different categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWITH b, COUNT(DISTINCT c) AS categoryCount\\nWHERE categoryCount >= 2\\nRETURN b.name AS businessName, categoryCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names, dates active, and number of deaths for storms that had 1 or more death?"}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE s.Number_Deaths >= 1\\nRETURN s.Name, s.Dates_active, s.Number_Deaths"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"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 name Topology!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Journal {name: 'Topology'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which directors had a movie both in the year 1999 and 2000?"}, {"role": "assistant", "content": "MATCH (m1:Movie), (m2:Movie)\\nWHERE m1.Year = 2000 AND m2.Year = 1999 AND m1.Director = m2.Director\\nRETURN DISTINCT m1.Director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to DOI where name is 10.1006/jnth.2000.2616 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1006/jnth.2000.2616'})-[r]->(n)\\nRETURN properties(n), r"}]} {"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 Linear Algebra_1 and Article, with article_id equal 1069, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Linear Algebra_1'})-[*]-(e:Article{article_id:'1069'}))\\nRETURN nodes(p)"}]} {"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 Marco or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Marco' OR n.affiliation IS NOT NULL\\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": "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\\nLIMIT 3"}]} {"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 fce69ad0112a3426c57a0582a2b8620f, along with the type of their relationship with Journal!"}, {"role": "assistant", "content": "MATCH (d:Journal)-[r]->(n)\\nWHERE d.journal_id CONTAINS 'fce69ad0112a3426c57a0582a2b8620f'\\nRETURN n, 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 \"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 527-551 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 = '527-551'\\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": "Which movies are released in the 'Animation' genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nWHERE m.status = 'Released'\\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": "Find all movies where the main language is English and have a budget over 50 million dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE 'English' IN m.languages AND m.budget > 50000000\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where doi_id is 46c2037fac5c38acd01bee5dde73c8e0?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'46c2037fac5c38acd01bee5dde73c8e0'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, 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": "What are the first 3 questions tagged with 'apollo' that have been answered?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nWHERE q.answered = true\\nRETURN q\\nORDER BY q.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the total points of gymnasts, ordered by their floor exercise points descending?"}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN g.Total_Points\\nORDER BY g.Floor_Exercise_Points DESC"}]} {"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 no comments!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.comments='no comments'\\nRETURN m.category_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 follower count between 1000 and 5000 and play the game 'Rust'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nWHERE s.followers >= 1000 AND s.followers <= 5000\\nRETURN s.name AS stream, s.followers AS followerCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Journal where name or journal_id contains J. Number Theory!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name CONTAINS 'J. Number Theory'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Journal)\\nWHERE m.journal_id CONTAINS 'J. Number Theory'\\nRETURN m AS node"}]} {"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 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) -[ha:HAS_KEY]->(m)\\nWHERE n.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)'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average fee for a CSU campus in the year of 1996?"}, {"role": "assistant", "content": "MATCH (n:CsuFee)\\nWHERE n.Year = 1996\\nRETURN avg(n.CampusFee)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Keyword that is not related to the Categories with the category_id 33657234da1dc070ea09e7c31bb86abb!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Categories {category_id: '33657234da1dc070ea09e7c31bb86abb'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.name"}]} {"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": "How many paths are there between Author where author_id is 1184638302ce384c7549eeead253af2d and Report, for which report_id equals 45009bf7f2e3f4f275de6d92deab7b27?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'1184638302ce384c7549eeead253af2d'})-[*]->(d:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})\\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 5 actors who were born before 1900."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.born < date('1900-01-01')\\nRETURN a.name, a.born\\nORDER BY a.born\\nLIMIT 5"}]} {"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 S. O., with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'S. O.'})-[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": "Which characters have a book1PageRank less than 0.4?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank < 0.4\\nRETURN c"}]} {"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 Hyper-K{\\\"a}hler Hierarchies and their twistor theory and are PUBLISHED_IN linked to Journal, where year is 2000?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[r:PUBLISHED_IN {year :'2000'}]->(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 running on the machine named '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 \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of different statuses."}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN COUNT(DISTINCT c.Status)"}]} {"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"}]} {"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 have been an \"officer_of\" an Entity with the same \"jurisdiction_description\" as the Entity linked to an Intermediary with the name \"LOYAL PORT LIMITED\"."}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: 'LOYAL PORT\\nLIMITED'})-[:intermediary_of]->(e:Entity)\\nWITH e.jurisdiction_description AS targetJurisdiction\\nMATCH (o:Officer)-[:officer_of]->(e2:Entity {jurisdiction_description: targetJurisdiction})\\nRETURN DISTINCT 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 top 5 most popular packages based on duration?"}, {"role": "assistant", "content": "MATCH (p:Package)\\nRETURN p.name, p.duration\\nORDER BY p.duration DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Which Advisor has most of students? List advisor and the number of students."}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Advisor, count(*) AS count\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where last_name is Keller and Topic, for which label is Category theory_3?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Keller'}), (b:Topic{label:'Category theory_3'})\\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}"}, {"role": "user", "content": "Find the shortest path between Article where comments is LaTeX2e, 36 pages ; Some misprints are corrected and Categories, with specifications equal q-fin.PR, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[*]-(e:Categories{specifications:'q-fin.PR'}))\\nRETURN nodes(p)"}]} {"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 SPbU-IP-00-03, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'SPbU-IP-00-03'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 3 or cluster is less than 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 3 OR n.cluster < 7\\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 the actors born after 1980 who have acted in more than one movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE p.born > 1980\\nWITH p, count(m) AS numMovies\\nWHERE numMovies > 1\\nRETURN p.name AS actor, numMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "How many flights have a velocity larger than 200?"}, {"role": "assistant", "content": "MATCH (f:Flight)\\nWHERE f.Velocity > 200\\nRETURN 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": "Who are the top 3 users that 'Neo4j' amplifies the most?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[a:AMPLIFIES]->(u:User)\\nRETURN u.screen_name AS user, count(a) AS amplifications\\nORDER BY amplifications DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many undergraduates are there in \"San Jose State University\" in year 2004?"}, {"role": "assistant", "content": "MATCH (t1:discipline_Enrollment)-[:TEACHES]->(t2:Campus)\\nWHERE t1.Year = 2004 AND t2.Campus = \"San Jose State University\"\\nRETURN sum(t1.Undergraduate)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 languages that are most frequently used as the original language in movies."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN l.name AS language, count(*) AS count\\nORDER BY count DESC\\nLIMIT 5"}]} {"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 is math.AT!"}, {"role": "assistant", "content": "MATCH (n:Categories {specifications:'math.AT'})\\nRETURN n"}]} {"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": "Return the journal_id for Journal combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nRETURN n.journal_id AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"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 R. or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'R.' OR n.affiliation IS NOT NULL\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"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 6ded85146e3dbfb1bb866831b8948f5b, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.key_id = '6ded85146e3dbfb1bb866831b8948f5b'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the last_name for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.last_name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "What is the address of the restaurant Subway?"}, {"role": "assistant", "content": "MATCH (r:Restaurant {ResName: \"Subway\"})\\nRETURN r.Address"}]} {"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 with the most questions having a score of zero?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score = 0\\nWITH u, COUNT(q) AS question_count\\nORDER BY question_count DESC\\nLIMIT 5\\nRETURN u.display_name AS user, question_count"}]} {"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 563c3ceee67bbf5fc29c764b86a8c8ca, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(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": "Which user links are associated with questions that have a negative score?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score < 0\\nRETURN u.link"}]} {"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 2001 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2001'}]->(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 \"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 distinct genres of movies they've acted in?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH a, count(DISTINCT g) AS genreCount\\nORDER BY genreCount DESC\\nLIMIT 3\\nRETURN a.name, genreCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?"}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Population > 1500\\nWITH c.Status AS Status\\nMATCH (c:City)\\nWHERE c.Population < 500 AND c.Status = Status\\nRETURN Status"}]} {"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 PU!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no =~'PU.*'\\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 all the movies reviewed with the summary 'An amazing journey'."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:REVIEWED {summary: 'An amazing journey'}]-(:Person)\\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 movies have been reviewed with a summary 'Fun, but a little far fetched' and what were their ratings?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary = 'Fun, but a little far fetched'\\nRETURN m.title, r.rating"}]} {"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 for which label is Topology_5, and what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.label = 'Topology_5'\\nRETURN properties(n) AS props, 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 3 users' questions have the most variations in favorites count?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, count(DISTINCT q.favorites) AS favVariations\\nORDER BY favVariations DESC\\nLIMIT 3\\nRETURN u.display_name, favVariations"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each classroom report the grade that is taught in it. Report just the classroom number and the grade number."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN DISTINCT n.Classroom, n.Grade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Which catalog content has the smallest capacity? Return the catalog entry name."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN cc.catalog_entry_name\\nORDER BY cc.capacity ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Give the years and official names of the cities of each competition."}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)-[:TAKES_PLACE_IN]->(c:City)\\nRETURN fc.Year, c.Official_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show the name of technicians aged either 36 or 37"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWHERE t.Age = 36 OR t.Age = 37\\nRETURN 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": "Identify the top 5 questions that have not been answered yet."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = false\\nRETURN q.title, q.link, q.createdAt\\nORDER BY q.createdAt DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Author for which author_id is a95ff40457bf3cae9c6852c6a14937fa!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})-[*]->(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 'Egress' nodes are there in the 'DataCenter'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(egress:Egress)\\nRETURN count(egress)"}]} {"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 greater than 50?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 50\\nRETURN 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 businesses with the name 'KettleHouse Brewing Co.' and their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.name = 'KettleHouse Brewing Co.'\\nRETURN b, c"}]} {"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: 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 year 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.journal_id STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.journal_id"}]} {"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": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where meta is 18 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '18'}]->(m:Journal)\\nWHERE m.title < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\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 connected to Article, but not to Author via WRITTEN_BY?"}, {"role": "assistant", "content": "MATCH (c:Article)-[r]-(n)\\nWHERE NOT (n)-[:WRITTEN_BY]-(: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": "List the first 3 entities that have filed the most filings where the beneficiary bank's country is the same as the originator bank's country."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank_country = f.originator_bank_country\\nWITH e, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 3\\nRETURN e.name AS entity_name, num_filings"}]} {"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 1009!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1009 OR n.article_id < 1009\\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": "What is the average number of days between the `orderDate` and the `shippedDate` for orders shipped to 'Brazil'?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shipCountry = 'Brazil'\\nWITH duration.inDays(date(o.orderDate), date(o.shippedDate)) AS daysDifference\\nRETURN avg(daysDifference) AS averageShippingTime"}]} {"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": "Look for the cluster of the Topic that is not related to the Article with the title Failure of Brown representability in derived categories!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Article {title: 'Failure of Brown representability in derived categories'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 been produced by 'Pixar Animation Studios' and have a runtime under 100 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.runtime < 100\\nRETURN m.title, m.runtime\\nORDER BY m.runtime\\nLIMIT 3"}]} {"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 label is Geometry_7 and Topic, for which label is Mathematical Analysis_8?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'}), (b:Topic{label:'Mathematical Analysis_8'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "What is the incident type description for the incident type with code \"VIOLENCE\"?"}, {"role": "assistant", "content": "MATCH (n: RefIncidentType {incident_type_code: \"VIOLENCE\"})\\nRETURN n.incident_type_description"}]} {"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 star rating greater than 4?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars > 4\\nWITH r\\nMATCH (u:User)-[:WROTE]->(r)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where label is Category theory_3 and share a common property with DOI, for which doi_id equals f2f5ea4787de1e16c51c306e07bb740c?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Category theory_3'})-[r]->(n), (d:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"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 all countries and the number of singers in each country."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWITH singer.country AS country, count(singer.country) AS count\\nRETURN country,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 the first 3 hashtags used in tweets mentioning 'Neo4j'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nMATCH (t)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS Hashtag\\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 videos by the number of countries they were produced in."}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH v, count(DISTINCT c) AS countries_count\\nORDER BY countries_count DESC\\nRETURN v.title, countries_count\\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": "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 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.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"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 9!"}, {"role": "assistant", "content": "MATCH path=(:Topic {cluster:'9'})-->()\\nRETURN path"}]} {"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 978aee6db23fc939cec71ac05eb15b7a, along with the type of their relationship with Categories!"}, {"role": "assistant", "content": "MATCH (d:Categories)-[r]->(n)\\nWHERE d.category_id CONTAINS '978aee6db23fc939cec71ac05eb15b7a'\\nRETURN n, TYPE(r)"}]} {"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 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 path=(: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 path"}]} {"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 suppliers that supply products in the 'Beverages' category."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category {categoryName: 'Beverages'})\\nRETURN s.companyName"}]} {"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 abce5ed79c520bdb8fd79a61a852648d!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the official names of cities that have hosted more than one competition?"}, {"role": "assistant", "content": "MATCH (c:City)<-[:TAKES_PLACE_IN]-(fc:Farm_competition)\\nWITH c, count(fc) as Farm_competition_count\\nWHERE Farm_competition_count > 1\\nRETURN c.Official_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What are all the catalog entry names?"}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN DISTINCT(cc.catalog_entry_name)"}]} {"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 ee24bab93b9531431f442226dd453745!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id <> 'ee24bab93b9531431f442226dd453745'\\nRETURN DISTINCT n.first_name AS first_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": "Who are the top 5 users with x-coordinate values less than -5000?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.x < -5000\\nRETURN u\\nORDER BY u.x DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many distinct locations have the things with service detail 'Unsatisfied' been located in?"}, {"role": "assistant", "content": "MATCH (T1:Thing)\\nWHERE T1.service_details = \"Unsatisfied\"\\nMATCH (T2:Timed_Locations_of_Thing)\\nWHERE T2.thing_id = T1.thing_id\\nRETURN COUNT(DISTINCT T2.Location_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": "Which actors were born after 1970?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born > 1970 AND exists{ (p)-[:ACTED_IN]->(:Movie) }\\nRETURN p.name AS actor, p.born AS year_born"}]} {"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": "Find nodes that are at the end of a path starting at Topic where cluster is 9 and traversing through Article with comments 23 pages, 1 figure!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'9'})-[*]->(d:Article{comments:'23 pages, 1 figure'})-[*]->(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 the Categories for which category_id starts with 978!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id STARTS WITH '978'\\nRETURN n"}]} {"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 Orbit-counting in non-hyperbolic dynamical systems and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Orbit-counting in non-hyperbolic dynamical systems'})-[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 \"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 followers of 'Neo4j' based on the number of statuses they have?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u.name, u.screen_name, u.statuses\\nORDER BY u.statuses 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 runtime of movies in each genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g.name AS genreName, avg(m.runtime) AS averageRuntime\\nRETURN genreName, averageRuntime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of journal_id and name from Journal where journal_id does not start with 9!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE NOT n.journal_id STARTS WITH '9'\\nRETURN DISTINCT n.journal_id AS journal_id, n.name AS name"}]} {"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": "Retrieve the description for Topic that is linked through a HAS_TOPIC relationship with the 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-!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'\\nRETURN m.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 by number of languages spoken in them?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title AS title, size(m.languages) AS numLanguages\\nORDER BY numLanguages DESC\\nLIMIT 5"}]} {"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 the number of Journal linked via PUBLISHED_IN and retrieve the title of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS journal_count\\nORDER BY journal_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 questions have a link containing 'apollo' and have been answered?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.link CONTAINS 'apollo' AND q.answered = true\\nRETURN q"}]} {"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 3 Filings where the beneficiary bank country is 'Singapore'."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'Singapore'\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Who is the nominee who has been nominated for the most musicals?"}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWITH m.Nominee AS Nominee, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of distinct company industries."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN count(DISTINCT c.Industry)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the maximum and minimum market value of companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN max(c.Market_Value_in_Billion), min(c.Market_Value_in_Billion)"}]} {"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 have retweeted tweets that mention hashtags also used by \"Neo4j\"."}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: \"neo4j\"})-[:POSTS]->(neo4jTweets:Tweet)-[:TAGS]->(commonHashtags:Hashtag)\\nWITH neo4j, neo4jTweets, commonHashtags\\nMATCH (otherTweets:Tweet)-[:TAGS]->(commonHashtags)<-[:TAGS]-(neo4jTweets)\\nWITH DISTINCT otherTweets\\nMATCH (user:User)-[:POSTS]->(:Tweet)-[:RETWEETS]->(otherTweets)\\nRETURN DISTINCT user.screen_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": "Retrieve the specifications 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.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": "Show the questions that have been tagged with 'aws-lambda' and have a score of 0."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWHERE q.score = 0\\nRETURN q.title AS title, q.link AS link, q.createdAt AS createdAt, q.id AS id"}]} {"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 $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many documents have the status code done?"}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_status_code = \"done\"\\nRETURN COUNT(d)"}]} {"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 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. '})\\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": "Which nodes are at the end of a path starting from Article, where title is A New Cohomology Theory for Orbifold, through Journal via PUBLISHED_IN with pages 1-31?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'A New Cohomology Theory for Orbifold'})-[:PUBLISHED_IN {pages: '1-31'}]->(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": "What is the total revenue of movies that have the genre \"Adventure\"?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Adventure'})\\nWITH g\\nMATCH (g)<-[:IN_GENRE]-(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 \"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 Quantum Affine (Super)Algebras $U_q(A_{1}^{(1)})$ and $U_q(C(2)^{(2)})$, through Journal via PUBLISHED_IN with meta 220?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Quantum Affine (Super)Algebras $U_q(A_{1}^{(1)})$ and $U_q(C(2)^{(2)})$'})-[:PUBLISHED_IN {meta: '220'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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 Rie!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label STARTS WITH 'Rie'\\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 5 orders with the highest freight costs."}, {"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 \"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 moderators who are also VIPs."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(m:User)-[:VIP]->(s)\\nRETURN s.name AS stream, m.name AS moderator_and_vip"}]} {"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 (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)-[:POSTS]->(tweet:Tweet)-[:CONTAINS]->(link:Link)\\nRETURN tweet.text AS tweet_text, tweet.created_at AS created_at, link.url AS link_url\\nORDER BY tweet.created_at 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": "What is the 'ip' address of the 'Interface' connected to the 'Egress' node?"}, {"role": "assistant", "content": "MATCH (egress:Egress)-[:ROUTES]->(interface:Interface)\\nRETURN interface.ip"}]} {"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 discount in orders?"}, {"role": "assistant", "content": "MATCH (p:Product)<-[:ORDERS]-(o:Order)\\nWITH p, o\\nORDER BY o.discount DESC\\nLIMIT 3\\nRETURN p.productName AS productName, o.discount AS discount"}]} {"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 Maciej, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Maciej'})-[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 all movies where the same person has acted and produced."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie), (p)-[:PRODUCED]->(m)\\nRETURN m.title AS MovieTitle, 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": "List the top 5 directors by number of movies directed in the 1990s."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.year >= 1990 AND m.year < 2000\\nWITH d, count(m) AS moviesDirected\\nORDER BY moviesDirected DESC\\nLIMIT 5\\nRETURN d.name, moviesDirected"}]} {"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 \"jurisdiction\" values of Entities that are connected to Officers who also have an \"officer_of\" relationship with an Other node."}, {"role": "assistant", "content": "MATCH (e:Entity)-->(o:Officer)-[:officer_of]->(other:Other)\\nRETURN DISTINCT e.jurisdiction"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"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 DOI, for which doi_id equals f2f5ea4787de1e16c51c306e07bb740c?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})\\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 is the average start time of all the Services?"}, {"role": "assistant", "content": "MATCH (s:Service) \\nWITH avg(s.startTime) AS averageStartTime\\nRETURN averageStartTime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Article where article_id is 1010, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1010'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 `quantity` ordered for products in the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Dairy Products'})-[:PART_OF]->(p:Product)\\nWITH avg(p.unitsOnOrder) AS averageQuantity\\nRETURN averageQuantity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is J.Diff.Eq and Journal, for which name is J.Diff.Eq?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J.Diff.Eq'}), (b:Journal{name:'J.Diff.Eq'})\\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": "Which adult films have been produced by companies not based in the USA?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_BY]->(c:ProductionCompany)\\nWHERE NOT EXISTS { (c)-[:PRODUCED_IN_COUNTRY]->(:Country {name: 'United States of America'}) }\\nRETURN a.title AS Adult_Film, c.name AS Production_Company"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "How many distinct incident type codes are there?"}, {"role": "assistant", "content": "MATCH (b:BehaviorIncident)\\nRETURN count(DISTINCT b.incident_type_code)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"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 title and the number of nodes connected to them via PUBLISHED_IN with pages = 479-502."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '479-502'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.title AS title, numberOfDirectConnections"}]} {"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 asked by a user with a reputation over 2000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 2000\\nRETURN q.title, q.link, q.createdAt\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Journal where name is Constructive Approximation and share a common property with Categories, for which specifications equals math.GT?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Constructive Approximation'})-[r]->(n), (d:Categories{specifications:'math.GT'})\\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": "Which businesses in 'CA' have a 'Coffee' category and what are their review ratings?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Coffee'})\\nWHERE b.state = 'CA'\\nMATCH (r:Review)-[:REVIEWS]->(b)\\nRETURN b.name, b.address, r.stars"}]} {"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 tweets by 'Neo4j' that contain the hashtag '#education'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN t.text, t.favorites, t.created_at\\nORDER BY t.favorites 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 actors have acted in movies directed by Harold Lloyd?"}, {"role": "assistant", "content": "MATCH (d:Director {name: \"Harold Lloyd\"})-[:DIRECTED]->(m:Movie)\\nMATCH (a:Actor)-[:ACTED_IN]->(m)\\nRETURN DISTINCT a.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": "List all officers from South Korea."}, {"role": "assistant", "content": "MATCH (o:Officer {countries: \"South Korea\"})\\nRETURN o"}]} {"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 befdd60b44b9cd4d5ffc084ce31d92d4!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'befdd60b44b9cd4d5ffc084ce31d92d4'})-[*2]->(n)\\nRETURN DISTINCT 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": "What is the total revenue generated by movies directed by directors born in 'Burchard, Nebraska, USA'?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn = 'Burchard, Nebraska, USA'\\nRETURN SUM(m.revenue) AS totalRevenue"}]} {"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 f0!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id =~'f0.*'\\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": "List the characters with the lowest `centrality` that interact with \"Brynden-Tully\" in any book."}, {"role": "assistant", "content": "MATCH (bt:Character {name: \"Brynden-Tully\"})\\nWITH bt\\nMATCH (bt)-[:INTERACTS*1..5]->(other)\\nRETURN other.name, other.centrality \\nORDER BY other.centrality ASC"}]} {"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 centrality below 0.2 and a book45PageRank above 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality < 0.2 AND c.book45PageRank > 3\\nRETURN c.name, c.centrality, c.book45PageRank"}]} {"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 title of the Article and the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Article)\\nRETURN n.title, m.comments\\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": "\"What percentage of all actors in the database have acted in more than one movie?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 1\\nWITH count(p) AS actors_more_than_one_movie\\nMATCH (actor:Person)-[:ACTED_IN]->(:Movie)\\nWITH count(DISTINCT actor) AS total_actors, actors_more_than_one_movie\\nRETURN (actors_more_than_one_movie * 1.0) / total_actors * 100 AS percentage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which grade is studying in classroom 103?"}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Classroom = 103\\nRETURN DISTINCT l.Grade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"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 key_id is 4969a8e0646cdb8842726781e7637625!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.key_id='4969a8e0646cdb8842726781e7637625'\\nRETURN m.cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_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 Report where report_id is 3fa3ec8100d88908b00d139dacdedb6a and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'3fa3ec8100d88908b00d139dacdedb6a'})-[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 \"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 total number of reviews written by each user?"}, {"role": "assistant", "content": "MATCH (user:User)-[:WROTE]->(review:Review)\\nWITH user, count(review) AS reviewCount\\nRETURN user.name AS userName, reviewCount"}]} {"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 interacted with 'Jaime-Lannister' in 'INTERACTS3' relationship."}, {"role": "assistant", "content": "MATCH (c:Character { name: 'Jaime-Lannister' })-[:INTERACTS3]->(other:Character)\\nRETURN other.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 lowest ratings in REVIEWS."}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nRETURN m.title AS movie, AVG(r.rating) AS average_rating\\nORDER BY average_rating 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": "Who has produced and written the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)<-[:WROTE]-(p)\\nRETURN p.name AS person, m.title AS movie"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "Which of the airport names contains the word 'international'?"}, {"role": "assistant", "content": "MATCH (a:Airport)\\nWHERE a.name =~ \"(?i).*international.*\"\\nRETURN a.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 key_id is 6ded85146e3dbfb1bb866831b8948f5b or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '6ded85146e3dbfb1bb866831b8948f5b' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "For each headquarter, what are the headquarter and how many companies are centered there?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Headquarters, count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Article where comments is Published by Geometry and Topology at\n http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.comments = 'Published by Geometry and Topology at http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html'\\nRETURN properties(b) AS Article_props, properties(n) AS props"}]} {"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 Mason?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Mason'})-[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": "What are the names of products with a reorder level greater than the average reorder level of all products?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH AVG(p.reorderLevel) AS avgReorderLevel\\nMATCH (p2:Product)\\nWHERE p2.reorderLevel > avgReorderLevel\\nRETURN p2.productName AS 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 \"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 title and the count of Journal linked via PUBLISHED_IN where year is not '2002', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year <> '2002'\\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 \"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=2018-11-28!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2018-11-28'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 2004 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2004'}]->(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 \"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 a95ff40457bf3cae9c6852c6a14937fa, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})-[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 \"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 share the same registered address as an entity with the jurisdiction \"SAM\"."}, {"role": "assistant", "content": "MATCH (e1:Entity {jurisdiction: 'SAM'})-[:registered_address]->(addr:Address)\\nMATCH (e2:Entity)-[:registered_address]->(addr)\\nWHERE e1 <> e2\\nRETURN DISTINCT e2.name\\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 are part of the 'Desserts, candies, and sweet breads' category and have a 'unitsOnOrder' above 5?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {description: 'Desserts, candies, and sweet breads'})\\nWHERE p.unitsOnOrder > 5\\nRETURN p.productName, p.unitsOnOrder"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the headquarters and industries of all companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Headquarters, c.Industry"}]} {"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_id or report_id contains f07a9f85a94d20f473a1bf9b432c05f8!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS 'f07a9f85a94d20f473a1bf9b432c05f8'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_id CONTAINS 'f07a9f85a94d20f473a1bf9b432c05f8'\\nRETURN m AS node"}]} {"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 '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.comments AS comments, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the location code with the most documents?"}, {"role": "assistant", "content": "MATCH (l:RefLocation)<-[:CONTAINS]-(d:DocumentLocation)\\nWITH l.Location_Code as location_code, count(*) as cnt\\nRETURN location_code\\nORDER BY cnt 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": "Find title of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 303-348!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '303-348'\\nRETURN n.title AS title, count(m) 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 the top 5 tweets that have been retweeted the most times."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:RETWEETS]->(retweet:Tweet)\\nRETURN t.text AS tweet_text, count(retweet) AS retweet_count\\nORDER BY retweet_count 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 \"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 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 PUBLISHED_IN has meta on 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '217'}]->(m)\\nWHERE n.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. '\\nRETURN m.journal_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": "List the first 3 hashtags appearing in the latest tweets by 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag)\\nWITH t, h\\nORDER BY t.created_at DESC\\nLIMIT 3\\nRETURN h.name AS hashtag"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of comments and title from Article where comments does not start with 1!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.comments STARTS WITH '1'\\nRETURN DISTINCT n.comments AS comments, n.title AS 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 first 3 movies that have a budget exactly 50 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget = 50000000\\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": "Name the streams that have a user named 'itsbigchase' as a moderator."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User {name: 'itsbigchase'})\\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": "Which adult films are associated with the genre 'Horror'?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:IN_GENRE]->(g:Genre {name: 'Horror'})\\nRETURN a.title"}]} {"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 Ma!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name =~'Ma.*'\\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 games played by streams created before 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.createdAt < datetime('2015-01-01T00:00:00Z')\\nRETURN g.name AS game, COUNT(s) AS stream_count\\nORDER BY stream_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "What are the dates of the assessment notes?"}, {"role": "assistant", "content": "MATCH (a:AssessmentNote)\\nRETURN a.date_of_notes"}]} {"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 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH (n:Author {author_id:'788db042978edbbfc654927e23ac21d1'})\\nRETURN n"}]} {"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 Amnon, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.first_name CONTAINS 'Amnon'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_no is SISSA: 39/99/FM/GEO and Categories, for which category_id is 994d468c3f0dd780baf58c6d7f205afd?"}, {"role": "assistant", "content": "39/99/FM/GEO and Categories, for which category_id is 994d468c3f0dd780baf58c6d7f205afd?\nA: MATCH (a:Report{report_no:'SISSA: 39/99/FM/GEO'}), (b:Categories{category_id:'994d468c3f0dd780baf58c6d7f205afd'})\\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 businesses have a user review mentioning 'comfortable places'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)-[:WROTE]->(u:User)\\nWHERE r.text CONTAINS 'comfortable places'\\nRETURN b.name, b.address, b.city, b.state"}]} {"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 Fast linear algebra is stable!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Fast linear algebra is stable'}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.specifications STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"isbn\": \"STRING\",\n \"publicationYear\": \"INTEGER\"\n }\n },\n \"Checkout\": {\n \"properties\": {\n \"checkoutDate\": \"STRING\",\n \"returnDate\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"birthdate\": \"STRING\"\n }\n },\n \"Patron\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"membershipDate\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Patron\",\n \"type\": \"CHECKED_OUT\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Author\",\n \"type\": \"WROTE\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Author\",\n \"type\": \"WROTE\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Patron\",\n \"type\": \"CHECKED_OUT\",\n \"to\": \"Book\"\n }\n ],\n \"relationshipProperties\": {\n \"CHECKED_OUT\": {\n \"return\": \"STRING\",\n \"checkout\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Who is the author of the book with the ISBN '1234567890'?"}, {"role": "assistant", "content": "MATCH (a:Author)-[:WROTE]->(b:Book)\\nWHERE b.isbn = '1234567890'\\nRETURN a AS author"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where cluster is 2 and DOI, for which name equals 10.1007/PL00005532?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'2'})-[*]->(d:DOI{name:'10.1007/PL00005532'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of technicians in ascending order of age."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Name\\nORDER BY t.Age ASC"}]} {"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 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 5 OR n.cluster < 7\\nRETURN n\\nLIMIT 8"}]} {"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 46c2037fac5c38acd01bee5dde73c8e0 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '46c2037fac5c38acd01bee5dde73c8e0'\\nRETURN properties(b) AS DOI_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 for which report_id starts with 6, 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 '6'\\nWITH n.report_id AS report_id SKIP 2\\nLIMIT 2\\nRETURN report_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": "List the names of all directors in the database."}, {"role": "assistant", "content": "MATCH (d:Director)\\nRETURN DISTINCT d.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 first 3 characters with the lowest `centrality`."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.centrality\\nORDER BY c.centrality ASC\\nLIMIT 3"}]} {"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 stream has the most moderators and VIPs among its chatters?\""}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER|MODERATOR|VIP]->(u)\\nWITH s, COUNT(DISTINCT u) AS influence_count\\nRETURN s.id, s.name, influence_count\\nORDER BY influence_count DESC\\nLIMIT 1"}]} {"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 3082, through Journal via PUBLISHED_IN with pages 45-96?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'3082'})-[:PUBLISHED_IN {pages: '45-96'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?"}, {"role": "assistant", "content": "MATCH (b:Branch)\\nWHERE b.Open_year = \"2001\" AND b.Membership_amount > \"100\"\\nRETURN b.City"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Sort the list of all the first and last names of authors in alphabetical order of the last names."}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.fname, a.lname\\nORDER BY a.lname"}]} {"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 streams created before 2017."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(c:Stream)\\nWHERE c.createdAt < datetime('2017-01-01T00:00:00Z')\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both DOI and DOI, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*]-(n)-[*]-(b:DOI)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and headquarters of all companies ordered by descending market value?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Company, c.Headquarters\\nORDER BY c.Market_Value DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which affiliation starts with Ohi!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation STARTS WITH 'Ohi'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which paper's title contains the word \"Database\"?"}, {"role": "assistant", "content": "MATCH (p:Paper)\\nWHERE p.title =~ \"(?i).*Database.*\"\\nRETURN p.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which country has at most 3 stadiums listed?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nWITH s.Country as country, count(*) as count\\nWHERE count <= 3\\nRETURN 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": "List the top 3 movies with a significant plot twist mentioned in the plot."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'twist'\\nRETURN m.title, m.plot\\nORDER BY m.imdbRating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Topic in the graph!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\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 5 actors were born in the USA and have acted in at least two movies?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.bornIn = 'USA'\\nWITH a, count(m) AS numMovies\\nWHERE numMovies >= 2\\nRETURN a.name, a.bornIn, numMovies\\nORDER BY numMovies 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 struck_off_date in 2013?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date CONTAINS '2013'\\nWITH count(DISTINCT e) AS count\\nRETURN count"}]} {"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 products fall under the same department as 'KEVIN sweatpants'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'KEVIN sweatpants'})-[:FROM_DEPARTMENT]->(d:Department)<-[:FROM_DEPARTMENT]-(other:Article)-[:VARIANT_OF]->(p:Product)\\nRETURN DISTINCT 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": "Show the top 5 users that 'Neo4j' interacts with based on the number of interactions."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:INTERACTS_WITH]->(user:User)\\nRETURN user.screen_name, COUNT(*) AS interactions\\nORDER BY interactions 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 users who have moderated other users?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:MODERATOR]->(u2:User)\\nRETURN DISTINCT u1.name AS moderator_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": "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: 4179 and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '4179'}) -[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 \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Author where first_name is Bernhard, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Bernhard'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 employeeID associated with the order with the highest freight cost?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH max(toFloat(o.freight)) AS maxFreight\\nMATCH (o:Order)\\nWHERE toFloat(o.freight) = maxFreight\\nRETURN o.employeeID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the id and market share of the browser Safari?"}, {"role": "assistant", "content": "MATCH (b:Browser {name:'Safari'})\\nRETURN b.id, b.market_share"}]} {"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 texts containing the word 'IPA'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)\\nWHERE r.text CONTAINS 'IPA'\\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 all suppliers that supply discontinued products."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.discontinued = true\\nRETURN s.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "How many musicals has each nominee been nominated for?"}, {"role": "assistant", "content": "MATCH (n:Musical)\\nRETURN n.Nominee, COUNT(*) AS count\\nORDER BY count DESC"}]} {"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": "Name the first 10 actors who have acted in movies with a budget less than 50 million dollars."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget < 50000000\\nRETURN a.name\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of actors who are not 20 years old?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.age <> 20\\nRETURN a.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List all document ids and receipt dates of documents."}, {"role": "assistant", "content": "MATCH (d:Document)\\nRETURN d.document_id, d.receipt_date"}]} {"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 Je!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name =~'Je.*'\\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 3 production companies with the highest average movie revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH pc, avg(m.revenue) AS avg_revenue\\nORDER BY avg_revenue DESC\\nLIMIT 3\\nRETURN pc.name, avg_revenue"}]} {"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 10!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 8 OR n.cluster < 10\\nRETURN n\\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": "Fetch the abstract of the Article that are linked via HAS_KEY to more than three Keyword, and list Keyword key_id and Keyword counts, ordering by Keyword count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWITH DISTINCT n, m\\nWITH n.abstract AS abstract, count(m) AS count, COLLECT(m.key_id) as key_id\\nWHERE count > 3\\nRETURN abstract, count, key_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": "What are the first 3 recent movies directed by directors born after 1970?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.born > date(\"1970-01-01\")\\nRETURN m.title AS MovieTitle, m.released AS ReleaseDate\\nORDER BY m.released 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": "What is the name and capacity for the stadium with the highest average attendance?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN stadium.name,stadium.capacity\\nORDER BY stadium.average DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"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 Report where report_id is 6949743cea68a5e6f3f5bd286694d356 and share a common property with Author, for which first_name equals R.?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'6949743cea68a5e6f3f5bd286694d356'})-[r]->(n), (d:Author{first_name:'R.'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Author where first_name is Bernhard?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Bernhard'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, 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": "List the questions asked by the user with id 10251021."}, {"role": "assistant", "content": "MATCH (u:User {id: 10251021})-[ :ASKED ]->(q:Question)\\nRETURN q.title, q.id"}]} {"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": "Find abstract of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where meta is 247!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '247'\\nRETURN n.abstract AS abstract, count(m) AS count"}]} {"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 logarithms!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'logarithms'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Journal for which journal_id is d3b321ed42589ea798c241aa7de23d2d!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})-[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 },\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 21 pages, AMS-LaTeX and are PUBLISHED_IN linked to Journal, where year is 2002?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'21 pages, AMS-LaTeX'})-[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 \"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 a genre of 'Sci-Fi'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Sci-Fi'})\\nRETURN m.title AS title, m.imdbRating AS rating\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"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": "Find Author that has a author_id 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.author_id STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the age of the tallest person?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Age\\nORDER BY p.Height 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 users have moderated the most streams and users combined?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s)\\nWHERE s:Stream OR s:User\\nWITH u, count(s) AS moderations\\nRETURN u.name AS user, moderations\\nORDER BY moderations DESC\\nLIMIT 3"}]} {"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 PAM-780!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no <> 'PAM-780'\\nRETURN DISTINCT n.report_no AS report_no"}]} {"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": "Are there any nodes that are connected with Keyword where key_id is 0e45607b74a52b79f39c242abf265272 and share a common property with Journal, for which name equals J.Diff.Eq?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[r]->(n), (d:Journal{name:'J.Diff.Eq'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who follows Alice?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(a:User {name: 'Alice'})\\nRETURN u.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the first_name and the author_id for those Author where first_name starts with R!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name STARTS WITH 'R'\\nRETURN n.first_name AS first_name, n.author_id AS 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": "What are the names of the first 3 products that have never been ordered?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE NOT exists{ (p)-[:ORDERS]->(:Order) }\\nRETURN p.productName\\nLIMIT 3"}]} {"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": "Retrieve the label for Topic that is linked through a HAS_TOPIC relationship with the Keyword where name is logarithmic barrier penalty!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='logarithmic barrier penalty'\\nRETURN m.label"}]} {"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 connected to addresses in Hong Kong?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE a.countries = \"Hong Kong\"\\nRETURN e.name AS entity_name, a.address AS address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 rated by user with ID 1?"}, {"role": "assistant", "content": "MATCH (u:User {id: 1})-[:RATED]->(m:Movie)\\nRETURN m\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which affiliation starts with Nic!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation STARTS WITH 'Nic'\\nRETURN n"}]} {"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": "Find nodes that are at the end of a path starting at Article where title is Subexponential groups in 4-manifold topology and traversing through DOI with doi_id 46c2037fac5c38acd01bee5dde73c8e0!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Subexponential groups in 4-manifold topology'})-[*]->(d:DOI{doi_id:'46c2037fac5c38acd01bee5dde73c8e0'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where name is Geom. Topol and Topic, with label equal Optical Imaging and Signal Processing_11, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{name:'Geom. Topol'})-[*]-(e:Topic{label:'Optical Imaging and Signal Processing_11'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find the titles of the papers that contain the word \"ML\"."}, {"role": "assistant", "content": "MATCH (p:Paper)\\nWHERE p.title CONTAINS \"ML\"\\nRETURN p.title"}]} {"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: 28 pages, LaTex and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '28 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 \"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 '263-281', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '263-281'\\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 \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments 16 pages To be published in Journal of Geometry and Physics!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '16 pages To be published in Journal of Geometry and Physics'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.name STARTS WITH 'd'\\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 and URLs of the first 3 streams that are part of a team created before 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2015-01-01T00:00:00Z')\\nRETURN s.name, s.url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average, maximum, and minimum budget for all movies before 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.Year < 2000\\nRETURN avg(m.Budget_million), max(m.Budget_million), min(m.Budget_million)"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of courses."}, {"role": "assistant", "content": "MATCH (c:Course)\\nRETURN COUNT(c)"}]} {"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)\\nRETURN e.name, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Show the nominees that have nominated musicals for both \"Tony Award\" and \"Drama Desk Award\"."}, {"role": "assistant", "content": "MATCH (n:Musical)\\nWHERE n.Award IN [\"Tony Award\", \"Drama Desk Award\"]\\nRETURN DISTINCT n.Nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?"}, {"role": "assistant", "content": "MATCH (a:Airport)<-[:LANDS_AT]-(f:Flight)-[:OPERATED_BY]->(c:OperateCompany)\\nWHERE a.Country = \"United States\" OR a.name = \"Billund Airport\"\\nRETURN DISTINCT f.Pilot as Pilots"}]} {"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 filings where the originator bank and the beneficiary bank are located at the same latitude."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.origin_lat = f.beneficiary_lat\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\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 Categories and Topic?"}, {"role": "assistant", "content": "MATCH (a:Categories)-[r]->(n), (d:Topic)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the starting year of the oldest technicians?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Starting_Year\\nORDER BY t.Age 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 is the name of the actor who acted in the movie \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Toy Story\"})<-[:ACTED_IN]-(a:Actor)\\nRETURN a.name"}]} {"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 ee!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id =~'ee.*'\\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 names of the top 3 suppliers based on the average freight of orders they supplied?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)<-[:ORDERS]-(o:Order)\\nWITH s, o.freight AS freight\\nWHERE freight IS NOT NULL\\nWITH s, avg(toFloat(freight)) AS avgFreight\\nORDER BY avgFreight DESC\\nLIMIT 3\\nRETURN s.companyName AS supplierName, avgFreight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Author where last_name is Warnaar and list their properties, including those of Author!"}, {"role": "assistant", "content": "MATCH (b:Author)-[r]->(n)\\nWHERE b.last_name = 'Warnaar'\\nRETURN properties(b) AS Author_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": "List the actors who have acted in movies directed by both Lilly Wachowski and Lana Wachowski."}, {"role": "assistant", "content": "MATCH (lilly:Person {name: 'Lilly Wachowski'})-[:DIRECTED]->(lillyMovies:Movie)\\nMATCH (lana:Person {name: 'Lana Wachowski'})-[:DIRECTED]->(lanaMovies:Movie)\\nMATCH (lillyMovies)<-[:ACTED_IN]-(lillyActors:Person)\\nMATCH (lanaMovies)<-[:ACTED_IN]-(lanaActors:Person)\\nWITH lillyActors, lanaActors\\nWHERE id(lillyActors) = id(lanaActors)\\nRETURN DISTINCT lillyActors.name AS actorName"}]} {"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": "Which nodes have a common property with Article where title is Log mirror symmetry and local mirror symmetry and are PUBLISHED_IN linked to Journal, where pages is 293-299?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Log mirror symmetry and local mirror symmetry'})-[r:PUBLISHED_IN {pages :'293-299'}]->(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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 original titles of movies that have been translated into Spanish?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language {name: 'Spanish'})\\nRETURN m.original_title AS OriginalTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1071 and Report, for which report_no equals SPbU-IP-00-03?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1071'})-[*]->(d:Report{report_no:'SPbU-IP-00-03'})\\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": "Which 5 movies have been rated exactly 5 times by users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, COUNT(u) AS ratingCount\\nWHERE ratingCount = 5\\nRETURN m.title AS movieTitle\\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 the top 3 movies with the lowest number of votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m\\nORDER BY m.votes ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate."}, {"role": "assistant", "content": "MATCH (c:Candidate)\\nRETURN c.Support_rate, c.Consider_rate, c.Oppose_rate\\nORDER BY c.Unsure_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": "List the first 3 languages that have been used as original languages in more than 10 movies."}, {"role": "assistant", "content": "MATCH (l:Language)<-[:ORIGINAL_LANGUAGE]-(m:Movie)\\nWITH l, count(m) AS movieCount\\nWHERE movieCount > 10\\nRETURN l.name AS language\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is Latex, xypic, and AMS packages. 53 pages, 1 figure and PUBLISHED_IN has year on 2002!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2002'}]->(m)\\nWHERE n.comments='Latex, xypic, and AMS packages. 53 pages, 1 figure'\\nRETURN m.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 ordered by customer 'VINET'."}, {"role": "assistant", "content": "MATCH (c:Customer {customerID: 'VINET'})-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Report where report_id is 45009bf7f2e3f4f275de6d92deab7b27 and list their properties, including those of Report!"}, {"role": "assistant", "content": "MATCH (b:Report)-[r]->(n)\\nWHERE b.report_id = '45009bf7f2e3f4f275de6d92deab7b27'\\nRETURN properties(b) AS Report_props, 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": "What are the review texts for the businesses with the lowest star ratings?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, r\\nORDER BY r.stars ASC\\nLIMIT 1\\nRETURN r.text AS reviewText"}]} {"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 in 'Missoula' with the highest number of 5-star reviews and list the review texts."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Missoula'})<-[:REVIEWS]-(r:Review {stars: 5.0})\\nWITH b, count(r) AS reviewCount, collect(r.text) AS reviewTexts\\nORDER BY reviewCount DESC\\nLIMIT 1\\nRETURN b.name AS businessName, reviewTexts"}]} {"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 units on order and not discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder IS NOT NULL AND p.discontinued = false\\nRETURN p\\nORDER BY p.unitsOnOrder ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the category_id from Categories where either category_id is b1d13c8b6874949821d038a8a71379d1 or category_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = 'b1d13c8b6874949821d038a8a71379d1' OR n.category_id IS NOT NULL\\nRETURN DISTINCT n.category_id AS category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "show the titles, and authors or editors for all books made after the year 1989."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWHERE b.Year > 1989\\nRETURN b.Book_Title, b.Author_or_Editor"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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(*) AS frequency\\nORDER BY frequency 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 distinct languages spoken?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH m, count(DISTINCT l) AS language_count\\nORDER BY language_count DESC\\nLIMIT 3\\nRETURN m.title AS movie_title, language_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 top 5 movies that have not been reviewed."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE NOT EXISTS { (m)<-[:REVIEWED]-() }\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where first_name is Amnon and DOI, for which name equals 10.1016/S0764-4442(00)00217-2?"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'Amnon'})-[*]->(d:DOI{name:'10.1016/S0764-4442(00)00217-2'})\\nRETURN count(p)"}]} {"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 where category_id is 978aee6db23fc939cec71ac05eb15b7a, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})-[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 \"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 'centrality' of 0.0 who have a 'INTERACTS3' relationship."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality = 0.0 AND EXISTS ((c)-[:INTERACTS3]->())\\nRETURN c.name"}]} {"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": "Is there a path connecting Author where author_id is a7193c11b0713ccfbb34c90cf18d3e5f and Report, for which report_no is G&T migration 2000-1?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'}), (b:Report{report_no:'G&T migration 2000-1'})\\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": "Fetch unique values of title and abstract from Article where title does not start with S!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.title STARTS WITH 'S'\\nRETURN DISTINCT n.title AS title, n.abstract AS 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": "Which country has produced the most number of 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\\nWITH c, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN c.name AS countryName, movieCount"}]} {"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 are played by streams that are part of teams created after 2017?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt > datetime('2017-01-01')\\nWITH s\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Keyword where key_id is 72e4f3fc2930bd3a0a7730a664d069d6, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[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": "What are the top 3 applications by number of instances running on machines?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(a:Application)\\nWITH a, count(m) AS instances\\nORDER BY instances DESC\\nLIMIT 3\\nRETURN a.name, instances"}]} {"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 asked by the user with a reputation of 65?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation = 65\\nRETURN q.title, q.createdAt\\nORDER BY q.createdAt 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": "List the first 3 tweets from 'neo4j' that have been retweeted and mention another user."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nWHERE exists{ (tweet)-[:RETWEETS]->(:Tweet) } AND exists{ (tweet)-[:MENTIONS]->(:User) }\\nRETURN tweet.text\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the writers of the books in ascending alphabetical order."}, {"role": "assistant", "content": "MATCH (b:Book)\\nRETURN b.Writer\\nORDER BY b.Writer 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": "List all reviews written in 2017."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date >= date('2017-01-01') AND r.date <= date('2017-12-31')\\nRETURN r.reviewId AS reviewId, r.text AS reviewText, r.stars AS stars, r.date AS reviewDate, u.name AS userName, 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": "What is the shortest path between \"Addam-Marbrand\" and \"Cersei-Lannister\" in terms of interactions?"}, {"role": "assistant", "content": "MATCH p=shortestPath((c1:Character {name: \"Addam-Marbrand\"})-[*]-(c2:Character {name: \"Cersei-Lannister\"}))\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the first_name of the Author and the name for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Keyword)\\nRETURN n.first_name, m.name\\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 5 genres are most common among movies with a budget over 200 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.budget > 200000000\\nRETURN g.name AS genre, COUNT(m) AS movie_count\\nORDER BY movie_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": "What are the top 3 categories with the highest average unit price of products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS category, avg(p.unitPrice) AS avgUnitPrice\\nORDER BY avgUnitPrice DESC\\nLIMIT 3\\nRETURN category, avgUnitPrice"}]} {"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 created in the year 2020?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE date({year: 2020}) <= s.createdAt <= date({year: 2020, month: 12, day: 31})\\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 \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where author_id contains ee24bab93b9531431f442226dd453745, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.author_id CONTAINS 'ee24bab93b9531431f442226dd453745'\\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 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\\nORDER BY m.tagline DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Main_Industry = 'Banking'\\nRETURN c.Rank, c.Company, c.Market_Value\\nORDER BY c.Sales_billion, c.Profits_billion"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_no for Report combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"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 Constructive Approximation!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Constructive Approximation'})-[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 \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there 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 DOI, for which doi_id equals 563c3ceee67bbf5fc29c764b86a8c8ca?"}, {"role": "assistant", "content": "MATCH p=(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. '})-[*]->(d:DOI{doi_id:'563c3ceee67bbf5fc29c764b86a8c8ca'})\\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' retweets mentions from?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:RT_MENTIONS]->(user:User)\\nRETURN user.screen_name AS user, count(*) AS mentions\\nORDER BY mentions DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the report_id for Report!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Report)\\nRETURN m.report_id 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": "List characters within louvain communities 0 to 5 with a pagerank greater than 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain >= 0 AND c.louvain <= 5 AND c.pagerank > 0.5\\nRETURN c"}]} {"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 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (n:Categories {category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})\\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 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 moviesCount\\nORDER BY moviesCount DESC\\nLIMIT 5\\nRETURN d.name, moviesCount"}]} {"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 Dy!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label =~'Dy.*'\\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": "List the top 5 switches by IP in zone 4."}, {"role": "assistant", "content": "MATCH (s:Switch)-[:HOLDS]->(r:Rack {zone: 4})\\nRETURN s.ip AS SwitchIP\\nORDER BY s.ip\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many candidates are there?"}, {"role": "assistant", "content": "MATCH (Candidate:Candidate)\\nWITH count(Candidate.People_ID) AS count\\nRETURN count"}]} {"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 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.'})-[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 3 most popular movies according to their popularity score?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.popularity\\nORDER BY m.popularity 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 JN!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no =~'JN.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"highschooler\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name ( Kyle )\": \"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 all the grades of the high schoolers."}, {"role": "assistant", "content": "MATCH (highschooler:Highschooler)\\nRETURN highschooler.grade"}]} {"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 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1063 OR n.article_id < 1013\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the headquarters shared by more than two companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Headquarters as Headquarters, COUNT(*) AS count\\nWHERE count > 2\\nRETURN Headquarters"}]} {"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 genres of movies that have a plot mentioning 'army'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.plot CONTAINS 'army'\\nRETURN DISTINCT g.name AS genre"}]} {"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 feature both American and Japanese actors?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE exists { (m)<-[:ACTED_IN]-(a1:Actor {bornIn: 'USA'}) } AND exists { (m)<-[:ACTED_IN]-(a2:Actor {bornIn: 'Japan'}) }\\nRETURN m.title AS MovieTitle\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List all headquarters and the number of companies in each headquarter."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Headquarters, COUNT(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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What is the number of departments in Division \"AS\"?"}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Division = \"AS\"\\nRETURN count(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": "Which streams are part of the team 'ESO Stream Team'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team {name: 'ESO Stream Team'})\\nRETURN s.name AS stream_name, s.url AS stream_url"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 homepage of the video 'Jonah: A VeggieTales Movie'?"}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})\\nRETURN v.homepage"}]} {"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 number of cars with more than 4 cylinders?"}, {"role": "assistant", "content": "MATCH (cars_data:cars_data)\\nWHERE cars_data.Cylinders > 4\\nRETURN count(*)"}]} {"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 0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.key_id = '0e45607b74a52b79f39c242abf265272'\\nRETURN properties(n) 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": "List the top 3 videos that have a revenue of zero."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.revenue = 0\\nRETURN v.title, v.popularity\\nORDER BY v.popularity DESC\\nLIMIT 3"}]} {"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 26 pages; final version; to appear in Numerische Mathematik!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.comments='26 pages; final version; to appear in Numerische Mathematik'\\nRETURN m.specifications"}]} {"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}"}, {"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 Categories with category_id eea477d68b70c3a05be12567240033ef!"}, {"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:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[*]->(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 budget greater than 50 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 50000000\\nRETURN m.title, m.budget"}]} {"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 by centrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality IS NOT NULL\\nRETURN c.name, c.centrality\\nORDER BY c.centrality 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 with the oldest teams associated with them."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH s, t\\nORDER BY t.createdAt\\nRETURN s\\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": "Is there any article related to Embrace S.Skinny Ankle H.W that is in a different product type but shares the same colour group?"}, {"role": "assistant", "content": "MATCH (a1:Article)-[:VARIANT_OF]->(p1:Product), (a2:Article)-[:VARIANT_OF]->(p2:Product)\\nWHERE p1.prodName = 'Embrace S.Skinny Ankle H.W' AND a1.colourGroupCode = a2.colourGroupCode AND p1.productTypeNo <> p2.productTypeNo\\nRETURN a2"}]} {"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 addresses are similar to 'ORION HOUSE SERVICES (HK) LIMITED ROOM 1401; 14/F.'?"}, {"role": "assistant", "content": "MATCH (a:Address {address: \"ORION HOUSE SERVICES (HK)\\nLIMITED ROOM 1401; 14/F.\"})-[:similar]->(similarAddress:Address)\\nRETURN similarAddress"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "For each company, return the company name and the name of the building its office is located in."}, {"role": "assistant", "content": "MATCH (b:Building)<-[:LOCATED_IN]-(c:Company) return c.name, collect(b.name) as officeLocations"}]} {"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"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many comments were made in the fourth week?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:CREATED]->(c:Comment)\\nWHERE date(r.timestamp).week = 4\\nRETURN count(c) AS count_Comment_"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Keyword where key_id is d2d74b47b149d8090871a2f33e80809b?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the maximum page size for everything that has more than 3 products listed?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p.max_page_size as max_page_size, count(*) AS cnt\\nWHERE cnt > 3\\nRETURN max_page_size"}]} {"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 d4a4409b7e8a77f4894c998a04162257, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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": "Are there any nodes that are connected with DOI where name is 10.1088/0305-4470/33/25/304 and share a common property with Report, for which report_no equals G&T migration 2000-1?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1088/0305-4470/33/25/304'})-[r]->(n), (d:Report{report_no:'G&T migration 2000-1'})\\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 top 5 questions based on the number of favorites they received."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the average height and weight for all males (sex is M)."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.Sex = 'M'\\nRETURN AVG(p.Height), AVG(p.Weight)"}]} {"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 for which author_id is 788db042978edbbfc654927e23ac21d1, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.author_id = '788db042978edbbfc654927e23ac21d1'\\nRETURN properties(n) AS props, r"}]} {"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/PL00005532!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.name = '10.1007/PL00005532'\\nRETURN properties(n) AS props"}]} {"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 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) -[wr:WRITTEN_BY]->(m)\\nWHERE n.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 m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the prices of publications whose publisher is either \"Person\" or \"Wiley\""}, {"role": "assistant", "content": "MATCH (p:Publication)\\nWHERE p.Publisher = \"Person\" OR p.Publisher = \"Wiley\"\\nRETURN p.Price"}]} {"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 chatter user who is also a VIP of another stream playing the same game."}, {"role": "assistant", "content": "MATCH (stream:Stream)<-[:CHATTER]-(chatter:User)\\nMATCH (chatter)-[:VIP]->(other_stream:Stream)\\nMATCH (stream)-[:PLAYS]->(game:Game)<-[:PLAYS]-(other_stream)\\nWHERE id(stream) <> id(other_stream)\\nRETURN DISTINCT stream.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the level name of the catalog with the lowest price (in USD)."}, {"role": "assistant", "content": "MATCH (t1:CatalogContent)\\nMATCH (t2:CatalogStructure)\\nWHERE t1.catalog_level_number = t2.catalog_level_number\\nRETURN t2.catalog_level_name\\nORDER BY t1.price_in_dollars ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme."}, {"role": "assistant", "content": "MATCH (j:Journal)-[r:EDited_BY]->(e:Editor)\\nRETURN e.Name, e.Age, j.Theme\\nORDER BY j.Theme ASC"}]} {"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 2010-06-18!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date <> '2010-06-18'\\nRETURN DISTINCT n.update_date AS update_date"}]} {"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 6!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'6'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"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 M, 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 'M'\\nWITH n.first_name AS first_name SKIP 2\\nLIMIT 2\\nRETURN first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where last_name is Burnol and Author, with first_name equal Alexander, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{last_name:'Burnol'})-[*]-(e:Author{first_name:'Alexander'}))\\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": "Which questions have been both answered and have a favorites count greater than 3?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true AND q.favorites > 3\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of the buildings that have more than one company offices."}, {"role": "assistant", "content": "MATCH (c:Company)-[:LOCATED_IN]->(b:Building)\\nWITH b.name AS name, COUNT(*) AS count\\nWHERE count > 1\\nRETURN 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 3 persons have the most distinct roles in the ACTED_IN relationship?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWITH p, count(DISTINCT r.roles) AS distinctRoles\\nORDER BY distinctRoles DESC\\nLIMIT 3\\nRETURN p.name, distinctRoles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 lowest revenue and released before 1990."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date < date('1990-01-01')\\nRETURN m.title, m.revenue\\nORDER BY m.revenue ASC\\nLIMIT 3"}]} {"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=Open sets satisfying systems of congruences!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Open sets satisfying systems of congruences'})-[*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": "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 AS title, m.vote_count AS vote_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": "What are the IPs of the top 3 Interfaces exposed to Port 80?"}, {"role": "assistant", "content": "MATCH (p:Port {port: 80})<-[:EXPOSES]-(i:Interface)\\nRETURN i.ip\\nORDER BY i.ip\\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": "Show the tweets that 'neo4j' has retweeted from users with a lower follower count."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)<-[:POSTS]-(user:User)\\nWHERE user.followers < me.followers\\nRETURN original.text AS TweetText, user.screen_name AS OriginalUser, user.followers AS FollowerCount, original.created_at AS CreatedAt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the titles of the books whose writer is not \"Elaine Lee\"?"}, {"role": "assistant", "content": "MATCH (b:Book)\\nWHERE b.Writer <> \"Elaine Lee\"\\nRETURN b.Title"}]} {"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 R, skip the first 2 records and return the next 2 records of label!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label STARTS WITH 'R'\\nWITH n.label AS label SKIP 2\\nLIMIT 2\\nRETURN label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "For each type of store, how many of them are there?"}, {"role": "assistant", "content": "MATCH (s:Store)\\nRETURN s.Type, COUNT(*)"}]} {"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.1142/S0219061301000107!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.name = '10.1142/S0219061301000107'\\nRETURN properties(n) AS props"}]} {"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": "How many paths are there between Author where author_id is f6bcab8e721fbec0f293fee49d73c9c4 and DOI, for which doi_id equals abce5ed79c520bdb8fd79a61a852648d?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*]->(d:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})\\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": "Which movie has the highest difference between its budget and revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, (m.revenue - m.budget) AS profit\\nORDER BY profit DESC\\nRETURN m.title, profit\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the report_id and the report_no for those Report where report_id starts with 2!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH '2'\\nRETURN n.report_id AS report_id, n.report_no AS report_no"}]} {"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 games played by streams that also have chatters who are VIPs."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game), (s)-[:CHATTER]->(u:User)-[:VIP]->(s)\\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 \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the names of companies by ascending number of sales."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Name\\nORDER BY c.Sales_in_Billion 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": "What is the average star rating of reviews written by each user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u.name AS userName, avg(r.stars) AS averageRating\\nRETURN userName, averageRating"}]} {"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 the highest IMDb ratings that were released before 1990?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released < \"1990-01-01\" AND m.imdbRating IS NOT NULL\\nRETURN m\\nORDER BY m.imdbRating 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": "List the top 3 tweets that mention 'Neo4j'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(:User {name: 'Neo4j'})\\nRETURN t.text AS tweet_text, t.favorites AS favorites\\nORDER BY favorites 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 movies have the most languages spoken in them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH m, COUNT(l) AS language_count\\nORDER BY language_count DESC\\nLIMIT 3\\nRETURN m.title AS MovieTitle, language_count AS NumberOfLanguages"}]} {"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 title in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, size(m.title) AS length\\nORDER BY length 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": "Who are the top 5 youngest directors based on the 'born' property?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.born IS NOT NULL\\nRETURN d.name, d.born\\nORDER BY d.born 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 types of relationships and their counts connected to Topic for which label is Category theory_3!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Category theory_3'})-[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 top 5 streams by total view count that have a team associated with them."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(:Team)\\nRETURN s.name, s.total_view_count\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to 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, with their relationship types and count these types!"}, {"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)\\nRETURN n, 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": "List the top 5 most recent tweets based on the 'created_at' date."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.text, t.created_at\\nORDER BY t.created_at 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 number of favorites for questions tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWITH avg(q.favorites) AS average_favorites\\nRETURN average_favorites"}]} {"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 263-281, connected to Article that has title equal to Superselection Theory for Subsystems?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '263-281'}]->(m:Journal)\\nWHERE n.title = 'Superselection Theory for Subsystems'\\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 first 3 products from suppliers in 'Germany'."}, {"role": "assistant", "content": "MATCH (s:Supplier {country: 'Germany'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName, p.productID, p.unitPrice\\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": "Identify the 3 categories with the least number of products."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS category, COUNT(p) AS productCount\\nORDER BY productCount ASC\\nLIMIT 3\\nRETURN category, 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": "What are the first 3 filings with a beneficiary bank located in 'Singapore' that have the smallest amounts?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.name = 'Singapore'\\nRETURN f\\nORDER BY f.amount 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 screen names of the top 3 users who have posted the most tweets?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nWITH u, COUNT(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3\\nRETURN u.screen_name AS 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 top 5 streams where the streamer plays 'Just Chatting'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Just Chatting'})\\nRETURN s.name AS stream_name, s.followers AS followers\\nORDER BY s.followers 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 3 movies with the highest revenue that are part of a collection."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(:Collection)\\nRETURN m.title, m.revenue\\nORDER BY m.revenue 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 person directed the movie \"V for Vendetta\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"V for Vendetta\"})<-[:DIRECTED]-(p:Person)\\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": "How many machines are held in the rack 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(machine:Machine)\\nRETURN count(machine) AS numberOfMachines"}]} {"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 `customerID` and `contactName` of customers who have only placed one order."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, size(collect(o.orderID)) AS orderCount\\nWHERE orderCount = 1\\nRETURN c.customerID, c.contactName"}]} {"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 Hyper-K{\\\"a}hler Hierarchies and their twistor theory and PUBLISHED_IN has meta on 213!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '213'}]->(m)\\nWHERE n.title='Hyper-K{\\\"a}hler Hierarchies and their twistor theory'\\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": "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.title, m.year, m.imdbRating\\nORDER BY m.imdbRating 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": "List the top 5 entities by their lastEditTimestamp."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.lastEditTimestamp IS NOT NULL\\nRETURN e\\nORDER BY e.lastEditTimestamp 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": "What are the top 5 beneficiary banks that have received funds from 'CIMB Bank Berhad'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank = 'CIMB Bank Berhad'\\nRETURN f.beneficiary_bank, COUNT(*) AS transaction_count\\nORDER BY transaction_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": "What are the first 3 movies that have a plot mentioning 'war'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'war'\\nRETURN m.title, m.plot\\nORDER BY m.released\\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 from community 795 have 'pagerank' above 0.2?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 795 AND c.pagerank > 0.2\\nRETURN c.name, c.pagerank"}]} {"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 based on the sum weight of their INTERACTS1 and INTERACTS2 relationships."}, {"role": "assistant", "content": "MATCH (c:Character)-[r1:INTERACTS1]->(c1:Character)\\nMATCH (c)-[r2:INTERACTS2]->(c2:Character)\\nWITH c, SUM(r1.weight + r2.weight) AS totalWeight\\nRETURN c.name AS characterName, 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": "Find all streams that have a 'CHATTER' relationship with a user whose name contains the substring 'john'."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE toLower(u.name) CONTAINS 'john'\\nMATCH (u)-[:CHATTER]->(s:Stream)\\nRETURN DISTINCT s"}]} {"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 LaTeX2e, 36 pages ; Some misprints are corrected and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[r]->(n)\\nRETURN properties(n), 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 are the names of entities that are connected to 'MICHAEL PAPAGEORGE, MR.' as an intermediary and what is their status?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: \"MICHAEL PAPAGEORGE, MR.\"})-[:intermediary_of]->(e:Entity)\\nRETURN e.name AS entity_name, e.status AS entity_status"}]} {"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 = 293-299."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '293-299'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.abstract AS abstract, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to UpdateDate where update_date is 2014-01-15, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-01-15'})-[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 applications are dependent 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 \"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 categories with products that have a reorder level below 10."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.reorderLevel < 10\\nRETURN c\\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 3 entities that are concerned in filings with a beneficiary bank country of 'United Kingdom' and an amount greater than 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.amount > 1000000\\nRETURN e.name AS entity_name\\nORDER BY e.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 name of the Version that precedes the Version with the name '7.1'?"}, {"role": "assistant", "content": "MATCH (v1:Version {name: '7.1'})<-[:PREVIOUS]-(v2:Version)\\nRETURN v2.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": "Who is the user with the lowest reputation to ask a question?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation ASC\\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 address of the business reviewed by the user named 'Will'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.address"}]} {"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 users that have been retweeted by 'neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)<-[:POSTS]-(retweetedUser:User)\\nRETURN retweetedUser.screen_name AS retweeted_user, retweetedTweet.text AS retweeted_tweet"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Topic where cluster is 4, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'4'})-[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 \"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 comments is 28 pages, LaTex and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'28 pages, LaTex'})-[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 \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Report that are missing the report_id!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id IS NULL\\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": "Which entity benefited from the filing with the lowest 'amount'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f\\nORDER BY f.amount ASC\\nLIMIT 1\\nMATCH (f)-[:BENEFITS]->(b:Entity)\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the industries of companies in descending order of the number of companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Industry as Industry, count(c) as count\\nRETURN Industry\\nORDER BY count DESC"}]} {"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 countries associated with Addresses."}, {"role": "assistant", "content": "MATCH (a:Address)\\nRETURN DISTINCT a.countries\\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 top 3 directors who have directed movies with the highest average votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, avg(m.votes) AS average_votes\\nMATCH (p:Person)-[:DIRECTED]->(m)\\nWITH p, average_votes\\nORDER BY average_votes DESC\\nRETURN p.name AS director_name, avg(average_votes) AS average_movie_votes\\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 the first 3 users who asked questions on or after June 1, 2020."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.createdAt >= datetime('2020-06-01T00:00:00Z')\\nRETURN u\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_feature_types\": {\n \"properties\": {\n \"feature_type_code\": \"STRING\",\n \"feature_type_name\": \"STRING\"\n }\n },\n \"ref_property_types\": {\n \"properties\": {\n \"property_type_code\": \"STRING\",\n \"property_type_description\": \"STRING\"\n }\n },\n \"other_available_features\": {\n \"properties\": {\n \"feature_id\": \"STRING\",\n \"feature_type_code\": \"STRING\",\n \"feature_name\": \"STRING\",\n \"feature_description\": \"STRING\"\n }\n },\n \"properties\": {\n \"properties\": {\n \"property_id\": \"STRING\",\n \"property_type_code\": \"STRING\",\n \"date_on_market\": \"STRING\",\n \"date_sold\": \"STRING\",\n \"property_name\": \"STRING\",\n \"property_address\": \"STRING\",\n \"room_count\": \"STRING\",\n \"vendor_requested_price\": \"STRING\",\n \"buyer_offered_price\": \"STRING\",\n \"agreed_selling_price\": \"STRING\",\n \"apt_feature_1\": \"STRING\",\n \"apt_feature_2\": \"STRING\",\n \"apt_feature_3\": \"STRING\",\n \"fld_feature_1\": \"STRING\",\n \"fld_feature_2\": \"STRING\",\n \"fld_feature_3\": \"STRING\",\n \"hse_feature_1\": \"STRING\",\n \"hse_feature_2\": \"STRING\",\n \"hse_feature_3\": \"STRING\",\n \"oth_feature_1\": \"STRING\",\n \"oth_feature_2\": \"STRING\",\n \"oth_feature_3\": \"STRING\",\n \"shp_feature_1\": \"STRING\",\n \"shp_feature_2\": \"STRING\",\n \"shp_feature_3\": \"STRING\",\n \"other_property_details\": \"STRING\"\n }\n },\n \"other_property_features\": {\n \"properties\": {\n \"property_id\": \"STRING\",\n \"feature_id\": \"STRING\",\n \"property_feature_description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many available features are there in total?"}, {"role": "assistant", "content": "MATCH (other_available_features:Other_Available_Features)\\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 products have a reorder level greater than 20 and are not discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel > 20 AND p.discontinued = false\\nRETURN p.productName, p.productID, p.unitsInStock, p.unitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the years, book titles, and publishers for all books, in descending order by year."}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN b.Year, b.Book_Title, b.Publisher\\nORDER BY b.Year DESC"}]} {"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 is the name of the movie containing the word \\\"Mail\\\"?\""}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title CONTAINS \"Mail\"\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many stadiums are there?"}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nRETURN count(s)"}]} {"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 0e45607b74a52b79f39c242abf265272 and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.key_id = '0e45607b74a52b79f39c242abf265272'\\nRETURN properties(b) AS Keyword_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": "What are the first 3 movies with a vote count less than 100?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes < 100\\nRETURN m.title\\nORDER BY m.votes\\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 is the number of items that are specifically designed for women?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product {productGroupName: \"Women\"})\\nRETURN COUNT(a) AS numberOfItemsForWomen"}]} {"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 disk size?"}, {"role": "assistant", "content": "MATCH (t:Type)\\nWITH max(t.disk) AS maxDisk\\nMATCH (t:Type) \\nWHERE t.disk = maxDisk\\nRETURN t.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 provide products to both 'Beverages' and 'Seafood' categories?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.categoryName IN ['Beverages', 'Seafood']\\nWITH s, c.categoryName AS categoryName\\nORDER BY s.supplierID, categoryName\\nWITH s, collect(categoryName) AS categories\\nWHERE 'Beverages' IN categories AND 'Seafood' IN categories\\nRETURN s.companyName AS supplierName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Which month has the most happy hours?"}, {"role": "assistant", "content": "MATCH (hh:HappyHour)\\nWITH hh.Month as Month, count(*) as count\\nORDER BY count DESC\\nRETURN Month\\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 3 suppliers supply products 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\\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 first 3 people who acted in a movie released in the 1990s."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released < 2000\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.max_page_size = \"A4\" AND p.pages_per_minute_color < 5\\nRETURN p.Product"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the district with the most residents?"}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Population DESC\\nLIMIT 1"}]} {"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 = 527-551."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '527-551'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"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 where the createdAt date is on a weekend."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE date(q.createdAt).dayOfWeek IN [6, 7]\\nRETURN q\\nORDER BY q.createdAt\\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 people to have produced a movie with more than 500 votes?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.votes > 500\\nRETURN p.name\\nLIMIT 3"}]} {"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 1071!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1071'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 Al!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name =~'Al.*'\\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": "Which 3 entities have the most relationships with filings where the originator bank country is 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank_country = 'United Kingdom'\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 3\\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": "Name the characters involved in the INTERACTS2 relationship with the highest weights. Limit to 3 characters."}, {"role": "assistant", "content": "MATCH (c1:Character)-[i:INTERACTS2]->(c2:Character)\\nRETURN c1.name, c2.name, i.weight AS weight\\nORDER BY i.weight 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 categories that have products with units in stock less than 10."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitsInStock < 10\\nRETURN DISTINCT c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the statuses and average populations of each city?"}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN c.Status, avg(c.Population)"}]} {"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 Open sets satisfying systems of congruences, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.title = 'Open sets satisfying systems of congruences'\\nRETURN properties(n) AS props, r"}]} {"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 6dc95119d8a737d9ffc7fe367159849b and list their properties, including those of Journal!"}, {"role": "assistant", "content": "MATCH (b:Journal)-[r]->(n)\\nWHERE b.journal_id = '6dc95119d8a737d9ffc7fe367159849b'\\nRETURN properties(b) AS Journal_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Role\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Performance\": {\n \"properties\": {\n \"feedback\": \"STRING\",\n \"score\": \"INTEGER\"\n }\n },\n \"Attendance\": {\n \"properties\": {\n \"status\": \"STRING\",\n \"date\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ROLE\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PERFORMANCE\",\n \"to\": \"Performance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ATTENDANCE\",\n \"to\": \"Attendance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ROLE\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_PERFORMANCE\",\n \"to\": \"Performance\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"HAS_ATTENDANCE\",\n \"to\": \"Attendance\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_ROLE\": {\n \"since\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Who are all the employees in the company?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nRETURN e.name AS employee_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 a 'degree' of zero."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree = 0\\nRETURN c.name"}]} {"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 44 pages!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'44 pages'})-[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 top 5 movies by the number of roles and their respective actors."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[ai:ACTED_IN]-(p:Person)\\nRETURN m.title AS movie, collect(p.name) AS actors, size(ai.roles) AS numRoles\\nORDER BY numRoles 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": "Name the actors who have acted in movies with a budget less than 50 million dollars."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget < 50000000\\nRETURN DISTINCT a.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 businesses reviewed on '2018-09-10' and who wrote the reviews?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date = date('2018-09-10')\\nRETURN b.name AS businessName, u.name AS userName"}]} {"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 10,000 followers and have the language \"en\"."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:VIP]-(u:User)\\nWHERE s.followers > 10000 AND EXISTS((s)-[:HAS_LANGUAGE]->(:Language {name: \"en\"}))\\nWITH DISTINCT u\\nMATCH (u)-[:CHATTER]->(stream:Stream)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"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": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where title is A Topology-Preserving Level Set Method for Shape Optimization!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.title='A Topology-Preserving Level Set Method for Shape Optimization'\\nRETURN m.key_id"}]} {"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 St!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description =~'St.*'\\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 \"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 latex, 38 pages, typos corrected, through Journal via PUBLISHED_IN with pages 521-554?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'latex, 38 pages, typos corrected'})-[:PUBLISHED_IN {pages: '521-554'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"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 5!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.cluster = '5'\\nRETURN properties(n) AS props"}]} {"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 A framework for understanding the geometry of continuous actions of Z^d was\ndeveloped by Boyle and Lind using the notion of expansive behavior along\nlower-dimensional subspaces. For algebraic Z^d-actions of entropy rank one, the\nexpansive subdynamics is readily described in terms of Lyapunov exponents. Here\nwe show that periodic point counts for elements of an entropy rank one action\ndetermine the expansive subdynamics. Moreover, the finer structure of the\nnon-expansive set is visible in the topological and smooth structure of a set\nof functions associated to the periodic point data.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' A framework for understanding the geometry of continuous actions of Z^d was developed by Boyle and Lind using the notion of expansive behavior along lower-dimensional subspaces. For algebraic Z^d-actions of entropy rank one, the expansive subdynamics is readily described in terms of Lyapunov exponents. Here we show that periodic point counts for elements of an entropy rank one action determine the expansive subdynamics. Moreover, the finer structure of the non-expansive set is visible in the topological and smooth structure of a set of functions associated to the periodic point data. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"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 Employee had the Highest Cross-Selling Count of 'Chocolade' and Another Product?\""}, {"role": "assistant", "content": "MATCH (choco:Product {productName: 'Chocolade'})-[:ORDERS]-(chocoOrder:Order)-[:ORDERS]-(otherProduct:Product)\\nWHERE choco.productID <> otherProduct.productID\\nWITH chocoOrder, COUNT(DISTINCT otherProduct) AS CrossSellingCount\\nORDER BY CrossSellingCount DESC\\nLIMIT 1\\nMATCH (chocoOrder)-[:PURCHASED]-(customer:Customer)-[:PURCHASED]-(otherOrder:Order)-[:ORDERS]-(otherProduct)\\nWHERE chocoOrder <> otherOrder\\nRETURN otherOrder.employeeID AS EmployeeID, COUNT(DISTINCT otherProduct) AS TotalCrossSelling\\nORDER BY TotalCrossSelling DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Movie\": {\n \"properties\": {\n \"released\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\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\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ],\n \"relationshipProperties\": {\n \"ACTED_IN\": {\n \"role\": \"STRING\"\n },\n \"RATED\": {\n \"rating\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the actor who played the role of 'Jack Dawson' in the movie 'Titanic'?"}, {"role": "assistant", "content": "MATCH (actor:Actor)-[acted:ACTED_IN]->(movie:Movie)\\nWHERE movie.title = 'Titanic' AND acted.role = 'Jack Dawson'\\nRETURN actor.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 that were tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Journal where name is Geom. Topol, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'})-[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 \"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": "Fetch the abstract of the Article that are linked via HAS_KEY to more than three Keyword, and list Keyword name and Keyword counts, ordering by Keyword count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWITH DISTINCT n, m\\nWITH n.abstract AS abstract, count(m) AS count, COLLECT(m.name) as name\\nWHERE count > 3\\nRETURN abstract, count, name\\nORDER BY count\\nLIMIT 6"}]} {"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": "Return the abstract for Article combined with the name for Journal!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.abstract AS Records\\nUNION ALL\\nMATCH (m:Journal)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"isbn\": \"STRING\",\n \"publicationYear\": \"INTEGER\"\n }\n },\n \"Checkout\": {\n \"properties\": {\n \"checkoutDate\": \"STRING\",\n \"returnDate\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"birthdate\": \"STRING\"\n }\n },\n \"Patron\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"membershipDate\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Patron\",\n \"type\": \"CHECKED_OUT\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Author\",\n \"type\": \"WROTE\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Author\",\n \"type\": \"WROTE\",\n \"to\": \"Book\"\n },\n {\n \"from\": \"Patron\",\n \"type\": \"CHECKED_OUT\",\n \"to\": \"Book\"\n }\n ],\n \"relationshipProperties\": {\n \"CHECKED_OUT\": {\n \"return\": \"STRING\",\n \"checkout\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the publication year of the book written by 'Jane Smith'?"}, {"role": "assistant", "content": "MATCH (a:Author {name:'Jane Smith'})-[:WROTE]->(b:Book)\\nRETURN b.publicationYear AS publicationYear"}]} {"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 `productName` and `categoryID` of the product with the highest `unitsOnOrder` that is not discontinued."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = false\\nWITH p\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 1\\nRETURN p.productName, p.categoryID"}]} {"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 Category theory_3!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label <> 'Category theory_3'\\nRETURN DISTINCT n.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where title is $A_{\\infty}$-structures on an elliptic curve?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"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 8!"}, {"role": "assistant", "content": "MATCH path=(:Topic {cluster:'8'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the status of the city that has hosted the greatest number of competitions."}, {"role": "assistant", "content": "MATCH (c:City)-[:TAKES_PLACE_IN]-(f:Farm_competition)\\nWITH c.Status AS Status, COUNT(*) AS Count\\nRETURN Status\\nORDER BY Count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"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 journal_id is f663b7749e96288af8628ca3cdb4f021 and Keyword, for which key_id is a87e17d3c9befeb236f46bf77da29d6d?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'}), (b:Keyword{key_id:'a87e17d3c9befeb236f46bf77da29d6d'})\\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": "Who are the first 3 people born in the 1960s that Keanu Reeves follows?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Keanu Reeves\"})-[:FOLLOWS]->(followed:Person)\\nWHERE followed.born >= 1960 AND followed.born < 1970\\nRETURN followed\\nORDER BY followed.born\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where first_name is Marco and Article, for which abstract equals 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 p=(a:Author{first_name:'Marco'})-[*]->(d: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 count(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 names of businesses that have a point location latitude greater than 46.87?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.location.latitude > 46.87\\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 more than 3 actors listed?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(p:Person)\\nWITH m, count(p) AS actorCount\\nWHERE actorCount > 3\\nRETURN m.title AS MovieTitle, actorCount"}]} {"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 2021-02-09!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2021-02-09'})-[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 }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal for which journal_id is 79942321e19994e38ad2e372af21c893, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.journal_id = '79942321e19994e38ad2e372af21c893'\\nRETURN properties(n) AS props, 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": "Which machines are running a process that has a start time greater than 1606500000000?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(p:Process)\\nWHERE p.startTime > 1606500000000\\nRETURN DISTINCT 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 the first 5 movies with the highest number of directors involved."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH m, count(d) AS numDirectors\\nORDER BY numDirectors DESC\\nRETURN m.title, numDirectors\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments is 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(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 the top 5 tweets by 'neo4j' with the most favorites."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nRETURN t.text AS tweet, t.favorites AS favorites\\nORDER BY t.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": "Which person reviewed the movie with the lowest rating?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, r, m\\nORDER BY r.rating ASC\\nLIMIT 1\\nRETURN p.name AS reviewer, m.title AS movie, r.rating AS rating"}]} {"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": "Look for the journal_id of the Journal that is not related to the Categories with the specifications q-fin.RM!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Categories {specifications: 'q-fin.RM'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Show the shop addresses ordered by their opening year."}, {"role": "assistant", "content": "MATCH (s:Shop)\\nRETURN s.Address\\nORDER BY s.Open_Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the manager name with most number of gas stations opened after 2000."}, {"role": "assistant", "content": "MATCH (g:GasStation)\\nWHERE g.Open_Year > 2000\\nWITH g.Manager_Name AS manager_name, count(g) AS num_stations\\nORDER BY num_stations DESC\\nLIMIT 1\\nRETURN manager_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 is the country code of the entity that originated the filing with sar_id \"3297\"?"}, {"role": "assistant", "content": "MATCH (f:Filing {sar_id: \"3297\"})-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN c.code"}]} {"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 hashtags that are commonly used in tweets that mention 'neo4j'."}, {"role": "assistant", "content": "MATCH (tweet:Tweet)-[:MENTIONS]->(:User {screen_name: 'neo4j'}), (tweet)-[:TAGS]->(hashtag:Hashtag)\\nWITH hashtag, count(DISTINCT tweet) AS tweetCount\\nRETURN hashtag.name, tweetCount\\nORDER BY tweetCount DESC"}]} {"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 21 pages, AMS-LaTeX, through Journal via PUBLISHED_IN with pages 479-502?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'21 pages, AMS-LaTeX'})-[:PUBLISHED_IN {pages: '479-502'}]->(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": "What are the names of streams that play 'Grand Theft Auto V' and have English as their language?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Grand Theft Auto V'}), (s)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name AS StreamName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show writers who have published a book with price more than 4000000."}, {"role": "assistant", "content": "MATCH (book:Book), (publication:Publication) \\nWHERE publication.Book_ID = book.Book_ID AND publication.Price > 4000000\\nRETURN book.Writer as writer"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the shipping agent names?"}, {"role": "assistant", "content": "MATCH (n:RefShippingAgent)\\nRETURN n.shipping_agent_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 customers who have ordered products where the discount was not applied."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[r:ORDERS]->(p:Product)\\nWHERE r.discount = \"0\"\\nWITH c, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5\\nRETURN c.customerID, c.companyName, orderCount"}]} {"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 directed by a director born in France."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn = \"France\"\\nRETURN m.title AS MovieTitle, m.year AS ReleaseYear\\nORDER BY m.year\\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?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NOT NULL\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the name of the stadium that has the maximum capacity."}, {"role": "assistant", "content": "MATCH (s:Stadium)\\nRETURN s.name\\nORDER BY s.Capacity 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 are the business names in 'San Mateo'?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.city = 'San Mateo'\\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": "List the top 5 characters based on the sum weight of their INTERACTS1 and INTERACTS2 relationships."}, {"role": "assistant", "content": "MATCH (c:Character)\\nOPTIONAL MATCH (c)-[i1:INTERACTS1]->(other1)\\nOPTIONAL MATCH (c)-[i2:INTERACTS2]->(other2)\\nWITH c, sum(i1.weight) AS weight1, sum(i2.weight) AS weight2\\nRETURN c.name AS character, weight1 + weight2 AS totalWeight\\nORDER BY totalWeight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from 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 (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.'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(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 are the first 3 Machines that run the OS starting after 1605733619064?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(os:OS)\\nWHERE os.startTime > 1605733619064\\nRETURN m.name\\nORDER BY os.startTime\\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 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 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": "Find the Report for which report_id starts with 930!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH '930'\\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": "Which users have asked questions that have not been answered and have a score less than -1?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.answered = FALSE AND q.score < -1\\nRETURN u"}]} {"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 d!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id STARTS WITH 'd'\\nRETURN n.journal_id AS journal_id, n.name AS name"}]} {"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 Summation and transformation formulas for elliptic hypergeometric series, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Summation and transformation formulas for elliptic hypergeometric series'})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Topic where label is Category theory_3, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Category theory_3'})-[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 the first 3 people who acted in a movie released in 2012."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released = 2012\\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 2008-01-29, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2008-01-29'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade."}, {"role": "assistant", "content": "MATCH (l:List)\\nWITH l.Grade as grade, count(distinct l.Classroom) as classrooms, count(*) as students\\nRETURN grade, classrooms, students\\nORDER BY grade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the doi_id of the DOI and the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nMATCH (m:DOI)\\nRETURN n.doi_id, m.name\\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": "What are the top 3 applications running on machines in zone 4?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(rack:Rack {zone: 4})-[:HOLDS]->(machine:Machine)-[:RUNS]->(app:Application)\\nRETURN app.name, COUNT(app) AS app_count\\nORDER BY app_count DESC\\nLIMIT 3"}]} {"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": "Find the shortest path between DOI where name is 10.1088/0305-4470/33/25/304 and Article, with comments equal 19 pages, AMSLatex, references added, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{name:'10.1088/0305-4470/33/25/304'})-[*]-(e:Article{comments:'19 pages, AMSLatex, references added'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to DOI where name contains 10.1016/S0393-0440(00)00003-6, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.name CONTAINS '10.1016/S0393-0440(00)00003-6'\\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": "List the top 5 actors by the number of movies they have cast in."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWITH p, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 5\\nRETURN p.name AS actor, num_movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the total number of catalog contents."}, {"role": "assistant", "content": "MATCH (n:CatalogContent)\\nRETURN count(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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names of faculties of rank Professor in alphabetic order."}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Rank = \"Professor\"\\nRETURN f.Fname\\nORDER BY f.Fname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade."}, {"role": "assistant", "content": "MATCH (l:List)\\nWITH l.Grade AS grade, COUNT(DISTINCT l.Classroom) AS count, COUNT(*) AS total\\nRETURN grade, count, total\\nORDER BY grade"}]} {"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 the most followers."}, {"role": "assistant", "content": "MATCH (p:Person)<-[:FOLLOWS]-(follower:Person)\\nWITH p, COUNT(follower) AS followerCount\\nORDER BY followerCount DESC\\nLIMIT 5\\nRETURN p.name AS personName, followerCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "What is the team with at least 2 technicians?"}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWITH t.Team AS Team, COUNT(*) AS cnt\\nWHERE cnt >=2\\nRETURN Team"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the number of companies whose industry is \"Banking\" or \"Conglomerate\","}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Industry = \"Banking\" OR c.Industry = \"Conglomerate\"\\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": "List the first 5 entities that have a 'struck_off_date'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL\\nRETURN e\\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": "Identify the characters who interact with 'Theon-Greyjoy' in any book."}, {"role": "assistant", "content": "MATCH (c:Character)-[:INTERACTS|INTERACTS1|INTERACTS2|INTERACTS3|INTERACTS45]->(theon:Character {name: 'Theon-Greyjoy'})\\nRETURN DISTINCT c.name AS CharacterName"}]} {"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 'filer_org_name' values with the highest average 'number' value for their filings."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f.filer_org_name AS filer_org_name, avg(f.number) AS average_number\\nORDER BY average_number DESC\\nLIMIT 3\\nRETURN filer_org_name, average_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 that have been rated by the most users?"}, {"role": "assistant", "content": "MATCH (v:Video)<-[:RATED]-(u:User)\\nWITH v, count(u) AS userCount\\nORDER BY userCount DESC\\nLIMIT 5\\nRETURN v.title, userCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 highest total budgets for their movies?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWITH pc, SUM(m.budget) AS total_budget\\nORDER BY total_budget DESC\\nLIMIT 3\\nRETURN pc.name AS production_company, total_budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where doi_id is 57aa19619324dcd39039c52e67002af3?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'57aa19619324dcd39039c52e67002af3'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(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": "Which Filings have an end date later than 'September 2015'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.end >= datetime('2015-10-01T00:00:00Z')\\nRETURN f"}]} {"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_country' is 'Singapore' and the 'amount' is greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_country = 'Singapore' AND f.amount > 1000000\\nRETURN count(f) AS 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": "What are the 'sar_id' values of the filings where the 'originator_bank' is 'CIMB Bank Berhad' and the 'beneficiary_country' is 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank = 'CIMB Bank Berhad' AND f.beneficiary_bank_country = 'United Kingdom'\\nRETURN f.sar_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 is the youngest director to direct a movie at the time the movie was released?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nRETURN p.name AS director, m.title AS movie, m.released - p.born AS age_at_release\\nORDER BY age_at_release ASC\\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": "Show the first 3 people who have reviewed more than one movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, count(m) AS movies_reviewed\\nWHERE movies_reviewed > 1\\nRETURN p\\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 categories does the business 'Missoula Public Library' belong to?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Missoula Public Library'})-[:IN_CATEGORY]->(c:Category)\\nRETURN c.name AS category"}]} {"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 \"en\" as a language and are moderated by users who are part of a team and are VIPs of other streams and chat in those streams?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nMATCH (s)<-[:MODERATOR]-(u:User)-[:HAS_TEAM]->(:Team)\\nMATCH (u)-[:VIP]->(otherStream:Stream)<-[:CHATTER]-(u)\\nWITH DISTINCT s, s.total_view_count AS viewCount\\nRETURN avg(viewCount) AS average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b and Article, for which abstract equals 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 p=(a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*]->(d: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 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": "Which adult films have been produced by companies not based in the USA?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_BY]->(pc:ProductionCompany), (a)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE c.name <> 'United States of America'\\nRETURN a.title AS AdultFilmTitle, pc.name AS ProductionCompany, c.name AS Country"}]} {"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 on at least two different streams?"}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWITH u, count(DISTINCT s) AS streams_count\\nWHERE streams_count >= 2\\nRETURN u.name, streams_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": "Find the filings where the 'originator_entity' and 'beneficiary_entity' are located in the same country but different cities."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(originator:Entity)-[:COUNTRY]->(originatorCountry:Country), (f)-[:BENEFITS]->(beneficiary:Entity)-[:COUNTRY]->(beneficiaryCountry:Country)\\nWHERE originatorCountry.code = beneficiaryCountry.code AND originator.location <> beneficiary.location\\nRETURN f.sar_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which classroom has the most students?"}, {"role": "assistant", "content": "MATCH (n:List)\\nWITH n.Classroom AS classroom, count(*) AS count\\nRETURN classroom\\nORDER BY count 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 top 3 categories with the highest average unit price of 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\\nRETURN CategoryName, AvgUnitPrice\\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 racks in zone 1 contain more than one type of machine?"}, {"role": "assistant", "content": "MATCH (r:Rack)-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nWHERE r.zone = 1\\nWITH r, count(DISTINCT t) AS typeCount\\nWHERE typeCount > 1\\nRETURN r.name AS rackName"}]} {"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 categoryName of categories that have at least one product with unitsOnOrder greater than 50."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitsOnOrder > 50\\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 2008-01-29 and the year of the update_date is 2021!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2008-01-29' AND date(n.update_date).year = 2021\\nRETURN n.update_date AS update_date"}]} {"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 minimum reorder level for products in the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Seafood'})<-[:PART_OF]-(p:Product)\\nRETURN MIN(p.reorderLevel) AS minReorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 where Tom Hanks acted in."}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Tom Hanks\"})-[:CAST_FOR]->(m:Movie)\\nRETURN m"}]} {"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 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, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e: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. '})-[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": "Find the top 5 orders with the most units ordered."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nRETURN o.orderID AS orderID, SUM(r.quantity) AS totalUnitsOrdered\\nORDER BY totalUnitsOrdered DESC\\nLIMIT 5"}]} {"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.1142/S0219061301000077!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1142/S0219061301000077'\\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 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.released\\nLIMIT 3"}]} {"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 468e440686a5984c9dbaefb5ac25d127 or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '468e440686a5984c9dbaefb5ac25d127' 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": "What are the names of businesses in 'Missoula' that are categorized as 'Breweries' and their review texts?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Breweries'})\\nWHERE b.city = 'Missoula'\\nMATCH (r:Review)-[:REVIEWS]->(b)\\nRETURN b.name AS BusinessName, r.text AS ReviewText"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author where last_name is Leoni, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{last_name:'Leoni'})-[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 \"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 description that contains the word \"partnership\"."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'partnership'\\nRETURN s"}]} {"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": "Find the shortest path between Report where report_no is HU-IAS/K-8, DPSU-99-8, RIMS-1266 and Journal, with journal_id equal d41d8cd98f00b204e9800998ecf8427e, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})-[*]-(e:Journal{journal_id:'d41d8cd98f00b204e9800998ecf8427e'}))\\nRETURN nodes(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": "Which officers have a 'note' property that is not empty and are 'officer_of' entities with a 'struck_off_date'?"}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWHERE o.note <> \"\"\\nMATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL\\nMATCH (o)-[:officer_of]->(e)\\nRETURN o.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": "Which nodes have a common property with Article where title is $A_{\\infty}$-structures on an elliptic curve and are PUBLISHED_IN linked to Journal, where pages is 527-551?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[r:PUBLISHED_IN {pages :'527-551'}]->(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 distinct `shipRegion` values are there for orders shipped to the 'USA'?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shipCountry = 'USA'\\nWITH collect(DISTINCT o.shipRegion) AS shipRegions\\nRETURN size(shipRegions) AS distinctShipRegions"}]} {"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 is the total number of singers?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of companies in the banking or retailing industry?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Industry = \"Banking\" OR c.Industry = \"Retailing\"\\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 languages that have been spoken in the most adult films."}, {"role": "assistant", "content": "MATCH (a:Adult)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH l.name AS language, COUNT(a) AS film_count\\nORDER BY film_count DESC\\nLIMIT 3\\nRETURN language, film_count"}]} {"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": "What are the properties of Journal that is PUBLISHED_IN connected to Article that has article_id equal to 5145?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWHERE n.article_id = 5145\\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": "Name the top 5 movies that have an IMDb ID starting with 'tt'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdb_id STARTS WITH 'tt'\\nRETURN m.title\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to 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 list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.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 properties(b) AS Article_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_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 Journal where journal_id is fce69ad0112a3426c57a0582a2b8620f and share a common property with Report, for which report_id equals f07a9f85a94d20f473a1bf9b432c05f8?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[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 \"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 top 5 streams with the most total view count that use English language."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name, s.total_view_count\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Article where title ends with Th!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title =~'Th.*'\\nRETURN n"}]} {"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 f294e61ea01b3678d7cd02b973bb71da and Author, with author_id equal 788db042978edbbfc654927e23ac21d1, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'f294e61ea01b3678d7cd02b973bb71da'})-[*]-(e:Author{author_id:'788db042978edbbfc654927e23ac21d1'}))\\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": "List the top 3 orders with the highest freight charges."}, {"role": "assistant", "content": "MATCH (o:Order)\\nRETURN o\\nORDER BY o.freight DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the most common type of Status across cities."}, {"role": "assistant", "content": "MATCH (c:City)\\nWITH c.Status AS Status, COUNT(*) AS Count\\nRETURN Status\\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 \"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 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!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.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. '\\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 the top 5 shortest movies with an imdbRating above 6.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating > 6.0 AND m.runtime IS NOT NULL\\nRETURN m\\nORDER BY m.runtime 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": "Which addresses are associated with entities that have an `incorporation_date` in January 2006?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date =~ '..-JAN-2006'\\nMATCH (e)-[:registered_address]->(a:Address)\\nRETURN DISTINCT a.address"}]} {"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 f6bcab8e721fbec0f293fee49d73c9c4!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"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": "Look for the journal_id of the Journal that is not related to the Categories with the category_id 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Categories {category_id: '978aee6db23fc939cec71ac05eb15b7a'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.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": "List the top 5 most recent questions with a score less than -3."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score < -3\\nRETURN q.title, q.text, q.link, q.createdAt\\nORDER BY q.createdAt DESC\\nLIMIT 5"}]} {"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 2008-01-29 and the year of the update_date is 2007!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2008-01-29' AND date(n.update_date).year = 2007\\nRETURN n.update_date AS update_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 3 languages for movies produced by 'Pixar Animation Studios'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nMATCH (m)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN l.name, count(m) AS movie_count\\nORDER BY movie_count 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 'Neo4j' mentioned in its tweets the most?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(:User {name: 'Neo4j'})\\nRETURN u.name AS user, count(t) AS mentions\\nORDER BY mentions DESC\\nLIMIT 10"}]} {"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 Dunajski!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "What is the rating of the restaurant Subway?"}, {"role": "assistant", "content": "MATCH (r:Restaurant {ResName:\"Subway\"})\\nRETURN r.Rating"}]} {"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 interfaces that are being routed by the network with IP '10.2'?"}, {"role": "assistant", "content": "MATCH (n:Network {ip: '10.2'})-[:ROUTES]->(i:Interface)\\nRETURN count(i)"}]} {"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 'reorderLevel' equal to the average 'reorderLevel' of all products in their category."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryID AS categoryID, avg(p.reorderLevel) AS avgReorderLevel\\nMATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.categoryID = categoryID AND p.reorderLevel = avgReorderLevel\\nRETURN p.productName"}]} {"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 5!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 4 OR n.cluster < 5\\nRETURN n\\nLIMIT 8"}]} {"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 name and the release year of the song by the youngest singer."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Song_Name,singer.Song_release_year\\nORDER BY singer.Age\\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": "Which user has the lowest average review stars? Display top 3 users."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, AVG(r.stars) AS avg_stars\\nORDER BY avg_stars ASC\\nLIMIT 3\\nRETURN u.name AS user, avg_stars"}]} {"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 interacted with both \"Catelyn-Stark\" and \"Cersei-Lannister\"?"}, {"role": "assistant", "content": "MATCH (catelyn:Character {name: \"Catelyn-Stark\"})-[:INTERACTS]->(catelyn_interaction)\\nWITH catelyn, count(DISTINCT catelyn_interaction) AS catelyn_interactions\\nMATCH (cersei:Character {name: \"Cersei-Lannister\"})-[:INTERACTS]->(cersei_interaction)\\nWITH catelyn, cersei, catelyn_interactions, count(DISTINCT cersei_interaction) AS cersei_interactions\\nMATCH (catelyn)-[:INTERACTS]->(common_interaction)<-[:INTERACTS]-(cersei)\\nRETURN DISTINCT common_interaction.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where category_id or specifications contains f294e61ea01b3678d7cd02b973bb71da!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id CONTAINS 'f294e61ea01b3678d7cd02b973bb71da'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.specifications CONTAINS 'f294e61ea01b3678d7cd02b973bb71da'\\nRETURN m AS node"}]} {"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 benefited from filings with 'amount' greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.amount > 1000000\\nWITH e, count(f) AS filingCount\\nRETURN e.name AS entityName, filingCount\\nORDER BY filingCount 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 that belong to the 'Desserts, candies, and sweet breads' category and have a reorder level above 15."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {description: 'Desserts, candies, and sweet breads'})\\nWHERE p.reorderLevel > 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 with the highest weight in INTERACTS1 relationships?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1]->(c2:Character)\\nRETURN c1.name AS Character, r.weight AS Weight\\nORDER BY r.weight 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 orders shipped to 'France' with a ship via code '1'."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France' AND o.shipVia = '1'\\nRETURN o.orderID, o.shippedDate, o.shipName\\nORDER BY o.shippedDate\\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 users who have rated a business in 'Burlingame'."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.city = 'Burlingame'\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the different statuses, ordered by the number of cities that have each."}, {"role": "assistant", "content": "MATCH (c:City)\\nWITH c.Status as status, count(*) as num\\nRETURN status\\nORDER BY num ASC"}]} {"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": "Find the shortest path between Report where report_id is dd0a54fea06e7b7a384741aac9313d65 and Article, with comments equal no comments, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})-[*]-(e:Article{comments:'no comments'}))\\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": "Show the names of Entities that have originator banks in 'Singapore'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing {originator_bank_country: 'Singapore'})\\nRETURN DISTINCT e.name AS EntityName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of all the products whose stock number starts with \"2\"."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nWHERE cc.product_stock_number =~ \"2.*\"\\nRETURN cc.catalog_entry_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 movies released after 2000 have \"coolest\" in their review summary?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary CONTAINS 'coolest' AND m.released > 2000\\nRETURN count(m)"}]} {"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": "How many paths are there between Article where comments is 20 pages and DOI, for which doi_id equals 673313cb2dcde5d215a7e7ec2788f676?"}, {"role": "assistant", "content": "MATCH p=(a:Article{comments:'20 pages'})-[*]->(d:DOI{doi_id:'673313cb2dcde5d215a7e7ec2788f676'})\\nRETURN count(p)"}]} {"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": "\"Give me the top 10 actors based on the number of movies they played 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 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "How many storms occured in each region?"}, {"role": "assistant", "content": "MATCH (r:Region)<-[:AFFECTS]-(s:Storm)\\nWITH r.Region_name AS Region_name, count(*) as cnt\\nRETURN Region_name, cnt\\nORDER BY cnt DESC"}]} {"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 ee4af8f04acefe1036a78a4436691f55, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.doi_id CONTAINS 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many employees do we have?"}, {"role": "assistant", "content": "MATCH (n:Employee)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show all main industry for all companies."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN DISTINCT c.Main_Industry"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 with the most movies featuring a runtime over 150 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE m.runtime > 150\\nWITH pc, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 5\\nRETURN pc.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": "What is the average rating of movies released in 2003?"}, {"role": "assistant", "content": "MATCH (m:Movie {released: 2003})<-[r:REVIEWED]-()\\nWITH avg(r.rating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and description of the role with code \"MG\"."}, {"role": "assistant", "content": "MATCH (role:Role {Role_Code:\"MG\"})\\nRETURN role.Role_Name, role.Role_Description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the role code with the least employees."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWITH e.Role_Code as role_code, count(*) as c\\nORDER BY c ASC\\nRETURN role_code\\nLIMIT 1"}]} {"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 where title is $A_{\\infty}$-structures on an elliptic curve, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{title:'$A_{\\infty}$-structures on an elliptic curve'})-[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 \"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the full names of faculties with sex M and who live in building NEB?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Sex = \"M\" AND f.Building = \"NEB\"\\nRETURN f.Fname, f.Lname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the document type code for the document with the id 2."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_id = 2\\nRETURN d.document_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Author for which author_id is 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'788db042978edbbfc654927e23ac21d1'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there 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 Categories, for which specifications equals cs.NI?"}, {"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-'})-[*]->(d:Categories{specifications:'cs.NI'})\\nRETURN count(p)"}]} {"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 \"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 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.first_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 lowest 'book1BetweennessCentrality' value among all characters?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN min(c.book1BetweennessCentrality) AS min_centrality"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the titles, years, and directors of all movies, ordered by budget in millions?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.Title, m.Year, m.Director\\nORDER BY m.Budget_million"}]} {"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 upvotes for all questions in the database?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH sum(q.upVotes) AS totalUpvotes\\nRETURN totalUpvotes"}]} {"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 3 questions with the most downVotes."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.downVotes 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 all characters that have interacted in 'book 2' and have a 'louvain' value greater than 3."}, {"role": "assistant", "content": "MATCH (c:Character)-[:INTERACTS2]->(c2:Character)\\nWHERE c.louvain > 3\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show different teams of technicians and the number of technicians in each team."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nRETURN t.Team, 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 all movies that have a release date in a leap year."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date.year % 4 = 0\\nRETURN m.title"}]} {"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": "Find Author that has a author_id 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.author_id STARTS WITH 'a'\\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": "Show the first 3 businesses with reviews mentioning 'IPA selection'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)\\nWHERE r.text CONTAINS 'IPA selection'\\nRETURN b\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the names of the buildings in \"on-hold\" status, and sort them in ascending order of building stories."}, {"role": "assistant", "content": "MATCH (b:Building)\\nWHERE b.Status = \"on-hold\"\\nRETURN b.name\\nORDER BY b.Stories ASC"}]} {"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 asked on the platform?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.createdAt\\nORDER BY q.createdAt DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"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 Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597 and share a common property with Author, for which first_name equals A.?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->(n), (d:Author{first_name:'A.'})\\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": "Which software has the highest number of versions that are dependencies of other software?"}, {"role": "assistant", "content": "MATCH (s1:Software)-[:DEPENDS_ON]->(s2:Software)-[:VERSION]->(v:Version)\\nWITH s2, size(collect(DISTINCT v)) AS versionCount\\nORDER BY versionCount DESC\\nLIMIT 1\\nRETURN s2.name, versionCount"}]} {"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 is Alexander!"}, {"role": "assistant", "content": "MATCH (n:Author {first_name:'Alexander'})\\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, p.startTime, p.pid\\nORDER BY p.startTime DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where first_name is Marco and Keyword, with name equal log-balanced, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{first_name:'Marco'})-[*]-(e:Keyword{name:'log-balanced'}))\\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": "Display all products that are not discontinued and have a 'unitPrice' above 35."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = false AND p.unitPrice > 35\\nRETURN p.productName, p.unitPrice"}]} {"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": "\"which is the character that most interacted with someone else?\""}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS]->(:Character)\\nRETURN c.name, SUM(r.weight) as totalInteractions\\nORDER BY totalInteractions 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 top 5 products that have a reorder level above 20?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel > 20\\nRETURN p.productName, p.reorderLevel\\nORDER BY p.reorderLevel 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": "What is the total number of filings where the 'beneficiary_lat' is greater than the 'originator_lat'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE toFloat(f.beneficiary_lat) > toFloat(f.originator_lat)\\nWITH count(f) AS totalFilings\\nRETURN totalFilings"}]} {"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 actor who has the highest average rating for their movies in the \"Comedy\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Comedy'})\\nWITH m\\nMATCH (a:Actor)-[:ACTED_IN]->(m)<-[r:RATED]-(:User)\\nWITH a, avg(r.rating) AS average_rating\\nORDER BY average_rating DESC\\nRETURN a.name AS actor_name, average_rating\\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": "Who are the top 5 users based on the sum of their area and size attributes?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.label AS user, (u.area + u.size) AS total\\nORDER BY total 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 top 3 languages used by streams with over 10,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.followers > 10000\\nRETURN l.name AS language, COUNT(s) AS stream_count\\nORDER BY stream_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": "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)\\nRETURN c.name AS Country, sum(f.amount) AS TotalAmountTransferred\\nORDER BY TotalAmountTransferred 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 genres have the most number of movies associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN g.name AS genre, movieCount"}]} {"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": "Fetch eight samples of the cluster of the Topic and the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Categories)\\nRETURN n.cluster, m.specifications\\nLIMIT 8"}]} {"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": "Look for the report_no of the Report that is not related to the Author with the last_name Chakrabarti!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Author {last_name: 'Chakrabarti'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.report_no"}]} {"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": "Who plays in GoldenEye?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie {title: \"GoldenEye\"})\\nRETURN a.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": "List the names of all services that listen on port 80."}, {"role": "assistant", "content": "MATCH (p:Port {port: 80})<-[:LISTENS]-(s:Service)\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Which membership card has more than 5 members?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nWITH m.Membership_card as Membership_card, count(*) as count\\nWHERE count > 5\\nRETURN Membership_card"}]} {"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 Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.title='Solutions to congruences using sets with the property of Baire'\\nRETURN m.doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Keyword for which key_id=d2d74b47b149d8090871a2f33e80809b!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[*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": "What are the names of businesses on '5th Ave' and their corresponding review stars?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.address CONTAINS '5th Ave'\\nRETURN b.name AS businessName, r.stars AS reviewStars"}]} {"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 who share the same community and have INTERACTS relationships."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS]-(c2:Character)\\nWHERE c1.community = c2.community\\nRETURN c1.name AS character1, c2.name AS character2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "List all restaurant types."}, {"role": "assistant", "content": "MATCH (r:RestaurantType)\\nRETURN r.ResTypeName"}]} {"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 name is not Commun.Math.Phys!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name <> 'Commun.Math.Phys'\\nRETURN DISTINCT n.name AS 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 5 users are most similar to Neo4j based on the SIMILAR_TO score?"}, {"role": "assistant", "content": "MATCH (me:Me {name: 'Neo4j'})<-[s:SIMILAR_TO]-(u:User)\\nRETURN u.screen_name AS user, s.score AS similarity\\nORDER BY similarity 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 8 or cluster is less than 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 8 OR n.cluster < 7\\nRETURN n\\nLIMIT 8"}]} {"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 logarithmic barrier penalty, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{name:'logarithmic barrier penalty'})-[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 5 most recent users who started following 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(me:Me {screen_name: 'neo4j'})\\nRETURN u.screen_name, u.name\\nORDER BY u.following DESC\\nLIMIT 5"}]} {"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 407312 and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'407312'})-[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 \"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 most downvotes and is tagged with 'aws-lambda'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWITH q, max(q.downVotes) AS maxDownvotes\\nWHERE q.downVotes = maxDownvotes\\nRETURN q.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": "What are the top 3 countries by the number of filings where they appear as the originator bank country?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country IS NOT NULL\\nRETURN f.originator_bank_country AS Country, count(f) AS FilingsCount\\nORDER BY FilingsCount 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 \"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 comments 17 pages!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '17 pages'}) -[: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": "List the properties of nodes that are 3 hops away from Keyword with name equal to super-exponential growth!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.name = 'super-exponential growth'\\nRETURN properties(n) AS props"}]} {"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": "Are there any nodes that are connected with Author where first_name is Jean-Francois and share a common property with Categories, for which specifications equals q-fin.RM?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Jean-Francois'})-[r]->(n), (d:Categories{specifications:'q-fin.RM'})\\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 }\n}"}, {"role": "user", "content": "Find the Article for which comments starts with 22 !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments STARTS WITH '22 '\\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 with the highest number of votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.vote_count\\nORDER BY m.vote_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": "List all businesses that have 'Market' in their name."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name CONTAINS 'Market'\\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 5 movies with the highest IMDb rating."}, {"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 \"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 AS TweetText, t.favorites AS Favorites\\nORDER BY t.favorites 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 3 customers have purchased the most products from the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category {categoryName: 'Seafood'})\\nWITH c, SUM(o.quantity) AS totalProducts\\nORDER BY totalProducts DESC\\nLIMIT 3\\nRETURN c.companyName AS customerName, totalProducts"}]} {"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` and `unitsInStock` for the first 3 products in the 'Dairy Products' category."}, {"role": "assistant", "content": "MATCH (c:Category)\\nWHERE c.categoryName = \"Dairy Products\"\\nMATCH (c)<-[:PART_OF]-(p:Product)\\nWITH p\\nLIMIT 3\\nRETURN p.productName, p.unitsInStock"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Journal for which journal_id is f663b7749e96288af8628ca3cdb4f021, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'})-[*]->(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 \"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 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.name STARTS WITH 'd'\\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": "Find nodes that are at the end of a path starting at Categories where category_id is 994d468c3f0dd780baf58c6d7f205afd and traversing through Author with affiliation Ohio State University!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'994d468c3f0dd780baf58c6d7f205afd'})-[*]->(d:Author{affiliation:'Ohio State University'})-[*]->(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 roles of any person in movies with a title containing 'Matrix'."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.title CONTAINS 'Matrix'\\nRETURN p.name AS person, m.title AS movie, r.roles AS roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the attribute data type for the attribute named \"Green\"."}, {"role": "assistant", "content": "MATCH (a:AttributeDefinition {attribute_name:\"Green\"})\\nRETURN a.attribute_data_type"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.Year <= 2000\\nRETURN m.Title, m.Director\\nORDER BY m.Gross_worldwide 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 the Report where report_id or report_no contains 6949743cea68a5e6f3f5bd286694d356!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS '6949743cea68a5e6f3f5bd286694d356'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_no CONTAINS '6949743cea68a5e6f3f5bd286694d356'\\nRETURN m AS node"}]} {"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 1139 and PUBLISHED_IN has pages on 263-281!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '263-281'}]->(m)\\nWHERE n.article_id='1139'\\nRETURN m.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 filings involve the most entities either as originators or beneficiaries?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR|:BENEFITS]->(e:Entity)\\nWITH f, COUNT(DISTINCT e) AS entityCount\\nORDER BY entityCount DESC\\nLIMIT 3\\nRETURN f.sar_id AS filing_id, entityCount"}]} {"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 775271e2a118257e7308fe4c21c9d0b4, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'775271e2a118257e7308fe4c21c9d0b4'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(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": "List all characters with a degree greater than 100."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 100\\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": "Can you find the top 5 most recent reviews?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r.date AS reviewDate, r.text AS reviewText, r.stars AS reviewStars, u.name AS userName, b.name AS businessName\\nORDER BY r.date DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many draft copies does the document with id 2 have?"}, {"role": "assistant", "content": "MATCH (d:DocumentDraft)\\nWHERE d.document_id = 2\\nRETURN count(*) as 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 6 or cluster is less than 11!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 6 OR n.cluster < 11\\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 is the average number of favorites for tweets that use the hashtag 'education'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nWITH avg(t.favorites) AS average_favorites\\nRETURN average_favorites"}]} {"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": "For each Article find its title and the count of Categories linked via HAS_CATEGORY, and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_CATEGORY]->(m:Categories)\\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 \"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 contact details for suppliers in the 'UK'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.country = 'UK'\\nRETURN s.companyName, s.contactName, s.contactTitle, s.phone, s.fax, s.address, s.city, s.postalCode, s.region, s.homePage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Report that has report_no PAM-780!"}, {"role": "assistant", "content": "MATCH path=(:Report {report_no:'PAM-780'})-->()\\nRETURN path"}]} {"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": "Look for the label of the Topic that is not related to the Categories with the specifications math.GT!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Categories {specifications: 'math.GT'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.label"}]} {"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 The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra or title 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.title IS NOT NULL\\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": "List the screen names of users who have posted tweets containing links and have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE u.followers > 10000\\nRETURN DISTINCT u.screen_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 languages are most commonly found in movies with a status of 'In Production'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.status = 'In Production'\\nRETURN l.name, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"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": "What is the average age of the visitors whose membership level is not higher than 4?"}, {"role": "assistant", "content": "MATCH (visitor:visitor)\\nWHERE visitor.Level_of_membership <= 4\\nRETURN avg(visitor.Age)"}]} {"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 088fbf884bd7c6533956a45531b362b7, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[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 \"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 all movies that have been directed by actors."}, {"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 \"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 603382!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.article_id='603382'\\nRETURN m.key_id"}]} {"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": "Are there any nodes that are connected with Topic where label is Optical Imaging and Signal Processing_11 and share a common property with Author, for which author_id equals a95ff40457bf3cae9c6852c6a14937fa?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Optical Imaging and Signal Processing_11'})-[r]->(n), (d:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the specifications of the Categories and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nMATCH (m:Author)\\nRETURN n.specifications, m.author_id\\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 is the oldest movie that Keanu Reeves acted in?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Keanu Reeves\"})-[:ACTED_IN]->(m:Movie)\\nWITH min(m.released) AS oldestMovie\\nMATCH (p:Person {name: \"Keanu Reeves\"})-[:ACTED_IN]->(m:Movie)\\nWHERE m.released = oldestMovie\\nRETURN m.title, m.released"}]} {"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 G&!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no =~'G&.*'\\nRETURN n"}]} {"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 5, along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.cluster CONTAINS '5'\\nRETURN n, TYPE(r)"}]} {"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: Riemannian geometry of quantum groups and finite groups with\n nonuniversal differentials and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Riemannian geometry of quantum groups and finite groups with nonuniversal differentials'}) -[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 \"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 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'788db042978edbbfc654927e23ac21d1'})-[*2]->(n)\\nRETURN DISTINCT 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 all countries and the number of singers in each country."}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWITH singer.Country AS Country, count(singer.Country) AS count\\nRETURN Country,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 languages spoken in streams with more than 10,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.followers > 10000\\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": "Identify the tags of the first 3 questions asked by 'Christopher'."}, {"role": "assistant", "content": "MATCH (u:User {display_name: 'Christopher'})-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWITH q, t\\nORDER BY q.createdAt\\nLIMIT 3\\nRETURN t.name AS tag"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {}\n },\n \"Journal\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both UpdateDate and Journal?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate)-[r]->(n), (d:Journal)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"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": "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 Categories, for which specifications is cond-mat.soft?"}, {"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:Categories{specifications:'cond-mat.soft'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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": "In 1980, how many cars were made?"}, {"role": "assistant", "content": "MATCH (cars_data:cars_data)\\nWHERE cars_data.Year = 1980\\nRETURN 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": "What are the 3 oldest persons in the database?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.name, p.born\\nORDER BY p.born 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": "How many different types of switches are held in rack 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (r:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(s:Switch)\\nRETURN COUNT(DISTINCT s.ip) AS distinctSwitchTypes"}]} {"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 Dunajski, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 775271e2a118257e7308fe4c21c9d0b4!"}, {"role": "assistant", "content": "MATCH path=(:Categories {category_id:'775271e2a118257e7308fe4c21c9d0b4'})-->()\\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": "Which three users have rated the most number of actors?"}, {"role": "assistant", "content": "MATCH (u:User)-[:RATED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH u, count(distinct a) AS numActors\\nORDER BY numActors DESC\\nLIMIT 3\\nRETURN u.name AS user, numActors"}]} {"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 share the same category with 'Imagine Nation Brewing'."}, {"role": "assistant", "content": "MATCH (b1:Business {name: 'Imagine Nation Brewing'})-[:IN_CATEGORY]->(c:Category)\\nMATCH (b2:Business)-[:IN_CATEGORY]->(c)\\nWHERE b1 <> b2\\nRETURN DISTINCT b2.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": "List all software versions associated with the software named 'RHEL'."}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:VERSION]->(v:Version)\\nRETURN v.name AS Version"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 5 adult films based on their IMDB ID starting with 'tt007'."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.imdb_id STARTS WITH 'tt007'\\nRETURN a.title, a.imdb_id\\nORDER BY a.imdb_id\\nLIMIT 5"}]} {"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": "Return the report_no for Report combined with the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\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 Journal and Topic?"}, {"role": "assistant", "content": "MATCH (a:Journal)-[r]->(n), (d:Topic)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(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": "Find the first 3 users who have mentioned 'neo4j' in tweets and follow 'neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(neo:User {screen_name: 'neo4j'}), (u)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(neo)\\nRETURN 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": "List all versions of the software 'RHEL' that have a previous version."}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:VERSION]->(v:Version)\\nWITH v\\nWHERE exists((v)-[:PREVIOUS]->())\\nRETURN v.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 top 5 users who interacted with a user whose color property is \"#1E90FF\"."}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User)\\nWHERE u1.color = \"#1E90FF\"\\nRETURN u2.label AS user, COUNT(r) AS interactions\\nORDER BY interactions DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the average and minimum weights for people of each sex?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN avg(p.Weight), min(p.Weight), p.Sex"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "which pilot is in charge of the most number of flights?"}, {"role": "assistant", "content": "MATCH (f:Flight)\\nWITH f.Pilot as pilot, COUNT(f) as count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN pilot"}]} {"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 ports that the application 'webapp' is listening on?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webapp'})-[:LISTENS]->(port:Port)\\nRETURN port.port"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Report the first name and last name of all the students."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN DISTINCT n.FirstName AS firstname, n.LastName AS lastname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Author for which last_name is Dunajski, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[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 \"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 Subexponential groups in 4-manifold topology and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Subexponential groups in 4-manifold topology'})-[r:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 help me 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 \"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 movies with taglines that contain the word 'Speed'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Speed'\\nRETURN m.title\\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": "\"List me the people that are actors and directors on the same movie\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN p.name, 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 first 3 movies with the genre 'Drama' that have a budget less than 10 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Drama'})\\nWHERE m.budget < 10000000\\nRETURN m.title\\nLIMIT 3"}]} {"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}"}, {"role": "user", "content": "Find the shortest path between Article where title is The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra and Keyword, with key_id equal c95a6da6fb331984f198feec0b0bb1a5, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})-[*]-(e:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'}))\\nRETURN nodes(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 \"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 = 45-96, and return comments along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='45-96'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, 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": "What are the top 3 oldest movies in the database by release year?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of actors, ordered alphabetically?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Name\\nORDER BY a.Name ASC"}]} {"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 10 originator banks with the highest total amount filed in transactions."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)\\nWITH o.name AS originator_bank, sum(f.amount) AS total_amount\\nORDER BY total_amount DESC\\nLIMIT 10\\nRETURN originator_bank, 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": "Which category has the least number of products on order?"}, {"role": "assistant", "content": "MATCH (c:Category)<-[:PART_OF]-(p:Product)\\nWHERE p.unitsOnOrder > 0\\nRETURN c.categoryName, COUNT(p) AS productCount\\nORDER BY productCount 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 movies that have been rated by users more than 1000 times."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 1000\\nRETURN m.title, m.vote_count\\nORDER BY m.vote_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[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 runtime of horror movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Horror'\\nRETURN avg(m.runtime) AS average_runtime"}]} {"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 cb7bf6a30b0381c15264305ad7677b30, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[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 \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where article_id is 1008?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1008'})-[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": "Which users are followed by 'Neo4j' and have more than 1000 followers?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(u:User)\\nWHERE u.followers > 1000\\nRETURN u.screen_name, u.followers"}]} {"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": "Look for the category_id of the Categories that is not related to the Keyword with the key_id a87e17d3c9befeb236f46bf77da29d6d!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Keyword {key_id: 'a87e17d3c9befeb236f46bf77da29d6d'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.category_id"}]} {"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 author_id or last_name contains ee24bab93b9531431f442226dd453745!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS 'ee24bab93b9531431f442226dd453745'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'ee24bab93b9531431f442226dd453745'\\nRETURN m AS node"}]} {"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": "Find the Journal with a name 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.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": "List the titles of movies released in the year 1995."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 1995\\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": "What is the average 'weight' of the \"INTERACTS\" relationships of characters with 'community' value of 579?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 579\\nMATCH (c)-[r:INTERACTS]->()\\nWITH avg(r.weight) AS average_weight\\nRETURN average_weight"}]} {"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 Filings where the amount is exactly $1,000,000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.amount = 1000000\\nRETURN f\\nORDER BY f.amount 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 \"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 article_id is 1139 and are PUBLISHED_IN linked to Journal, where year is 2001?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1139'})-[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 \"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 reviews with a rating of 4 or higher?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars >= 4.0\\nRETURN DISTINCT b.name AS businessName"}]} {"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 products supplied by suppliers who are located in the same country as the customer with the most orders."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, count(o) AS orderCount\\nORDER BY orderCount DESC\\nWITH collect(c.country) AS countries\\nLIMIT 1\\nUNWIND countries AS country\\nMATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE s.country = country\\nRETURN DISTINCT p.productName"}]} {"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)\\nRETURN m.title, m.votes\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"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!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.category_id AS Records\\nUNION ALL\\nMATCH (m:DOI)\\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": "Are there any nodes that are connected with Author where first_name is Marco and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Marco'})-[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 \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the manager name for gas stations belonging to the ExxonMobil company."}, {"role": "assistant", "content": "MATCH (c:Company)-[sc:OWNS]->(gs:GasStation)\\nWHERE c.Company = 'ExxonMobil'\\nRETURN gs.Manager_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 top 5 tweets with the most favorites that were posted using 'Buffer'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:USING]->(s:Source {name: 'Buffer'})\\nRETURN t.text AS tweet_text, t.favorites AS num_favorites\\nORDER BY t.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where name is 10.1016/S0764-4442(00)00217-2 and DOI, with doi_id equal 01c710839626aa78f11824682bccef1b, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{name:'10.1016/S0764-4442(00)00217-2'})-[*]-(e:DOI{doi_id:'01c710839626aa78f11824682bccef1b'}))\\nRETURN nodes(p)"}]} {"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 and birth dates of people, ordered by their names in alphabetical order?"}, {"role": "assistant", "content": "MATCH (people:people)\\nRETURN people.Name,people.Birth_Date\\nORDER BY people.Name ASC"}]} {"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 0e45607b74a52b79f39c242abf265272, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[*]->(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": "Find the top 5 questions with the highest score that are tagged with 'graphql'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWITH q\\nORDER BY q.score DESC\\nLIMIT 5\\nRETURN q"}]} {"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 tagline containing 'football'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'football'\\nRETURN m\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find the last name of the author with first name \"Amal\"."}, {"role": "assistant", "content": "MATCH (a:Author {fname: \"Amal\"})\\nRETURN a.lname"}]} {"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 'Samoa' and have a 'same_name_as' relationship with other entities?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = \"Samoa\"\\nMATCH (e)-[:same_name_as]->(other)\\nRETURN DISTINCT 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 top 3 characters by 'degree' who also have a 'book1PageRank' higher than 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 0.5\\nRETURN c.name, c.degree\\nORDER BY c.degree DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show all storm names affecting region \"Denmark\"."}, {"role": "assistant", "content": "MATCH (s:Storm)-[:AFFECTS]->(r:Region)\\nWHERE r.Region_name = 'Denmark'\\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": "List the first 3 movies that have been rated exactly 10 times and have a budget greater than 100000 USD."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000 AND m.vote_count = 10\\nRETURN m.title, m.budget, m.vote_count\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "When is the last day any resident moved in?"}, {"role": "assistant", "content": "MATCH (r:Resident)\\nRETURN max(r.date_moved_in)"}]} {"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 common roles for Keanu Reeves across all his movies?"}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Keanu Reeves'})-[r:ACTED_IN]->(m:Movie)\\nWITH p, collect(r.roles) AS rolesList\\nUNWIND rolesList AS roles\\nUNWIND roles AS role\\nRETURN p.name, role, count(*) AS times_played\\nORDER BY times_played DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the station name with greatest number of trains."}, {"role": "assistant", "content": "MATCH (s:Station)-[:SERVES]->(t:Train)\\nWITH s.Name AS name, COUNT(*) as count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN 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 top 5 entities that have filed the most filings where the beneficiary bank is located in the United States."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank_country = \"United States\"\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 5\\nRETURN e.name, filingsCount"}]} {"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 detail description for IRIS JKT w pile?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: \"IRIS JKT w pile\"})-[:VARIANT_OF]->(p:Product)\\nRETURN p.detailDesc"}]} {"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 less than 1000 USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue < 1000\\nRETURN m.title, m.revenue\\nORDER BY m.released\\nLIMIT 3"}]} {"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 where title is Failure of Brown representability in derived categories, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{title:'Failure of Brown representability in derived categories'})-[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 \"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 creation dates of questions that have been answered and have a score greater than 10?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true AND q.score > 10\\nRETURN q.createdAt"}]} {"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 all hashtags used in tweets from 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS hashtag_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": "When did the episode \"A Love of a Lifetime\" air?"}, {"role": "assistant", "content": "MATCH (tv_series:TV_series)\\nWHERE tv_series.Episode = 'A Love of a Lifetime'\\nRETURN tv_series.Air_Date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names, address roads, and cities of the branches ordered by opening year?"}, {"role": "assistant", "content": "MATCH (b:Branch)\\nRETURN b.Name, b.Address_road, b.City\\nORDER BY b.Open_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": "What is the average star rating of businesses reviewed by users in each city?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWITH b.city AS city, r.stars AS stars\\nRETURN city, avg(stars) AS averageRating"}]} {"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 from France have an IMDb rating higher than 8.0?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE \"France\" IN m.countries AND m.imdbRating > 8.0\\nRETURN m.title"}]} {"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 '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.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 \"title\": \"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": "Fetch the title 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.title AS title, count(m) AS count, COLLECT(m.author_id) as author_id\\nWHERE count > 3\\nRETURN title, count, author_id\\nORDER BY count\\nLIMIT 6"}]} {"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 \"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.id, s.name, s.url, s.followers"}]} {"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 containing a hashtag named 'education'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN t\\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 movies with the tagline 'Welcome to the Real World'."}, {"role": "assistant", "content": "MATCH (m:Movie {tagline: 'Welcome to the Real World'})\\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 top 5 officers by their last edit timestamp."}, {"role": "assistant", "content": "MATCH (o:Officer)\\nRETURN o.name, o.lastEditTimestamp\\nORDER BY o.lastEditTimestamp 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": "Name the first 3 applications running on the machine located in rack 'DC1-RCK-1-1'."}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(machine:Machine)-[:RUNS]->(application:Application)\\nRETURN application.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "List name and damage for all storms in a descending order of max speed."}, {"role": "assistant", "content": "MATCH (s:Storm)\\nRETURN s.Name, s.Damage_millions_USD\\nORDER BY s.Max_speed DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts."}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(g:GasStation)\\nRETURN g.Location, g.Representative_Name\\nORDER BY c.Assets_billion DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Categories for which category_id=cb7bf6a30b0381c15264305ad7677b30!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 interacts in book 45 with a weight greater than 90?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[i:INTERACTS45]->(c2:Character)\\nWHERE i.weight > 90\\nRETURN c1.name AS character1, c2.name AS character2, i.weight AS weight"}]} {"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 To!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label =~'To.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where category_id is 775271e2a118257e7308fe4c21c9d0b4 and Author, for which first_name is A.?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'775271e2a118257e7308fe4c21c9d0b4'}), (b:Author{first_name:'A.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the youngest editor?"}, {"role": "assistant", "content": "MATCH (e:Editor)\\nRETURN e.Name\\nORDER BY e.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": "List 3 actors born in France who have directed a movie."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.bornIn = 'France' AND exists{ (p)-[:DIRECTED]->(:Movie) }\\nRETURN p.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": "Which users have reviewed businesses in California?"}, {"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 \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "Show me all the restaurants."}, {"role": "assistant", "content": "MATCH (r:Restaurant)\\nRETURN r.ResName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names and last names of teachers in alphabetical order of last name."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nRETURN t.first_name, t.last_name\\nORDER BY t.last_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 racks contain machines running application named 'logstash'?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'logstash'})<-[:RUNS]-(machine:Machine)<-[:HOLDS]-(rack:Rack)\\nRETURN DISTINCT rack.name AS rack_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 types of applications by PID in descending order."}, {"role": "assistant", "content": "MATCH (a:Application)\\nRETURN a.name AS application, a.pid AS pid\\nORDER BY pid 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 title of the question with the most downvotes?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH q, q.downVotes AS num_downvotes\\nORDER BY num_downvotes DESC\\nLIMIT 1\\nRETURN q.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 different jobs listed in the crew for the movie 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})<-[:CREW_FOR]-(p:Person)\\nRETURN DISTINCT p.job AS job"}]} {"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 number of units in stock for products in each category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS categoryName, avg(p.unitsInStock) AS averageUnitsInStock\\nRETURN categoryName, averageUnitsInStock"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Report where report_no is HU-IAS/K-8, DPSU-99-8, RIMS-1266 and Report, with report_id equal 6949743cea68a5e6f3f5bd286694d356, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_no:'HU-IAS/K-8, DPSU-99-8, RIMS-1266'})-[*]-(e:Report{report_id:'6949743cea68a5e6f3f5bd286694d356'}))\\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 top 5 movies that have been produced by 'Universal Pictures'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Universal Pictures'})\\nRETURN m.title, m.popularity\\nORDER BY m.popularity 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": "Identify the first 3 users who are moderators for streams with a total view count exceeding 500,000."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE s.total_view_count > 500000\\nRETURN u\\nORDER BY s.createdAt\\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 entities that have a note regarding their status."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.note IS NOT NULL\\nRETURN e"}]} {"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 Jean-Francois!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {first_name: 'Jean-Francois'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.article_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 movies are tagged with 'adventure' and have a popularity above 15?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'adventure'})\\nWHERE m.popularity > 15\\nRETURN m"}]} {"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 the shortest path between Keyword where key_id is c95a6da6fb331984f198feec0b0bb1a5 and Article, with article_id equal 1071, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[*]-(e:Article{article_id:'1071'}))\\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": "Which machines are running processes that depend on the service named 'java'?"}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})<-[:DEPENDS_ON]-(p:Process)<-[:RUNS]-(m:Machine)\\nRETURN m.name AS machine_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the locations that have gas stations owned by a company with a market value greater than 100?"}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(gs:GasStation)\\nWHERE c.Market_Value > 100\\nRETURN gs.Location"}]} {"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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with 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) and PUBLISHED_IN has meta on 225!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '225'}]->(m)\\nWHERE n.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)'\\nRETURN m.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 3 users with the highest size values."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u\\nORDER BY u.size 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 degree exactly 300?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree = 300.0\\nRETURN c.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": "Who has the highest 'pagerank' among all characters? Show top 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.pagerank\\nORDER BY c.pagerank DESC\\nLIMIT 3"}]} {"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 Warnaar, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Warnaar'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Adult\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 worked with Tim Allen in 2015?\n\""}, {"role": "assistant", "content": "MATCH (timAllen:Person {name: \"Tim Allen\"})-[:CAST_FOR]->(m:Movie)<-[:CAST_FOR]-(coWorkers:Person)\\nWHERE m.release_date >= date(\"2015-01-01\") AND m.release_date <= date(\"2015-12-31\")\\nRETURN DISTINCT coWorkers.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the themes of competitions that have corresponding host cities with more than 1000 residents?"}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Population > 1000\\nMATCH (fc:Farm_competition)-[:TAKES_PLACE_IN]->(c)\\nRETURN fc.Theme"}]} {"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 is the shortest distance between the statue of Sir Walter Scott and the statue of the poet who wrote \\\"My Love Is Like A Red Red Rose\\\"?\""}, {"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 is the shortest distance between the statue of Sir Walter Scott and the statue of the poet who wrote \\\"My Love Is Like A Red Red Rose\\\"?\"\nA: MATCH (scott:PointOfInterest)-[:TAGS]->(scottTags:OSMTags {name: \"Sir Walter Scott\"}), (poet:PointOfInterest)-[:TAGS]->(poetTags:OSMTags {name: \"Robert Burns\"}), p = shortestPath((scott)-[:ROUTE*]-(poet))\\nWITH p, reduce(s = 0, r IN relationships(p) | s + r.distance) AS totalDistance\\nRETURN totalDistance AS shortestDistance"}]} {"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 were shipped on the same day."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o.shippedDate AS shippedDate, collect(o) AS orders\\nWHERE size(orders) > 1\\nUNWIND orders AS order\\nRETURN order.orderID, order.shipName"}]} {"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 that mention 'car wash'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'car wash'\\nRETURN b.name, b.address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 3 movies that were produced in multiple countries."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH m, count(c) AS numCountries\\nWHERE numCountries > 1\\nRETURN m.title AS movie, numCountries\\nORDER BY numCountries 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": "Who are the top 3 users with the most followers?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.screen_name, u.followers\\nORDER BY u.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": "List the movies that have been both directed and produced by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:PRODUCED]-(p)\\nRETURN m.title AS movie"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average fee for a CSU campus in the year of 2005?"}, {"role": "assistant", "content": "MATCH (n:CsuFee)\\nWHERE n.Year = 2005\\nRETURN avg(n.CampusFee)"}]} {"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 customers that purchased orders shipped to France?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France'\\nRETURN DISTINCT c.companyName AS CustomerName, c.contactName AS ContactName, c.contactTitle AS ContactTitle, c.city AS City, c.country AS Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the label of the Topic and the report_no for Report!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Report)\\nRETURN n.label, m.report_no\\nLIMIT 8"}]} {"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": "Return the specifications for Categories combined with the doi_id for DOI, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION\\nMATCH (m:DOI)\\nRETURN m.doi_id 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": "What is the name of the language that is most common among streams with over 1,000,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 1000000\\nMATCH (s)-[:HAS_LANGUAGE]->(l:Language)\\nWITH l, count(*) AS languageCount\\nORDER BY languageCount DESC\\nRETURN l.name\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"airlines\": {\n \"properties\": {\n \"uid\": \"STRING\",\n \"airline\": \"STRING\",\n \"abbreviation\": \"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": "Count the number of flights departing from 'APG'."}, {"role": "assistant", "content": "MATCH (flights:flights)\\nWHERE flights.SourceAirport = 'APG'\\nRETURN count(*)"}]} {"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 super-population viewpoint and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.name = 'super-population viewpoint'\\nRETURN properties(b) AS Keyword_props, properties(n) AS props"}]} {"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 poker players whose earnings is higher than 300000?"}, {"role": "assistant", "content": "MATCH (T1:people)-[]-(T2:poker_player)\\nWHERE T2.Earnings > 300000\\nRETURN T1.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the campus fee of \"San Francisco State University\" in year 1996?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Campus = \"San Francisco State University\"\\nWITH c\\nMATCH (f:CsuFee)\\nWHERE f.Campus = c.Id AND f.Year = 1996\\nRETURN f.CampusFee AS campusfee"}]} {"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 supply products with more than 50 units in stock?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.unitsInStock > 50\\nRETURN s.companyName\\nLIMIT 3"}]} {"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.1006/jnth.2000.2616, and what are their relationships to DOI?"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r]-(n)\\nWHERE c.name = '10.1006/jnth.2000.2616'\\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": "List the 3 teams with the most 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 \"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 the movie with the lowest IMDb rating."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m\\nORDER BY m.imdbRating ASC\\nLIMIT 1\\nWITH m.year AS lowestRatedYear\\nMATCH (movie:Movie {year: lowestRatedYear})\\nRETURN movie.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": "List all products supplied by 'Exotic Liquids'."}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: \"Exotic Liquids\"})-[:SUPPLIES]->(p:Product)\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many users have no followers?"}, {"role": "assistant", "content": "MATCH (n:User)\\nWHERE NOT (()-[:FOLLOWS]->(n))\\nRETURN COUNT(n) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report for which report_id is f07a9f85a94d20f473a1bf9b432c05f8, and what are their relationships to Report?"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r]-(n)\\nWHERE c.report_id = 'f07a9f85a94d20f473a1bf9b432c05f8'\\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": "List the first 5 streams that have been VIP in more than one stream."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)-[:VIP]->(otherStream:Stream)\\nWITH s, COUNT(DISTINCT otherStream) AS vipCount\\nWHERE vipCount > 1\\nRETURN s.name AS streamName, s.url AS streamUrl, vipCount\\nORDER BY vipCount DESC\\nLIMIT 5"}]} {"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 are the languages used by the least number of TV Channels and how many channels use it?"}, {"role": "assistant", "content": "MATCH (tv_channel:TV_Channel)\\nRETURN tv_channel.Language,count(*)\\nORDER BY tv_channel.Language ASC\\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": "What is the average number of followers for streams that use the language \"en\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nRETURN avg(s.followers)"}]} {"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 weight in INTERACTS3 relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS3]->(c2:Character)\\nRETURN c.name AS character, r.weight AS weight\\nORDER BY r.weight ASC\\nLIMIT 5"}]} {"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": "Fetch eight samples of the update_date of the UpdateDate and the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nMATCH (m:Keyword)\\nRETURN n.update_date, m.key_id\\nLIMIT 8"}]} {"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": "Sort employee names by their age in ascending order."}, {"role": "assistant", "content": "MATCH (employee:employee)\\nRETURN employee.Name\\nORDER BY employee.Age"}]} {"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.1016/S0764-4442(00)00217-2!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name CONTAINS '10.1016/S0764-4442(00)00217-2'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.name CONTAINS '10.1016/S0764-4442(00)00217-2'\\nRETURN m AS node"}]} {"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 associated with the Benny Shorts?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Benny Shorts'\\nRETURN p.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal where journal_id is e7b0a9b48142710ab6e87f136f6b7606, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[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 \"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.1016/S0040-9383(00)00015-X, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0040-9383(00)00015-X'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Report the first name and last name of all the teachers."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nRETURN DISTINCT t.FirstName, t.LastName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the role name and role description for employee called Ebba?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.Employee_Name = \"Ebba\"\\nWITH e\\nMATCH (r:Role)\\nWHERE r.Role_Code = e.Role_Code\\nRETURN r.Role_Name, r.Role_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": "List the first 5 tweets with the highest number of favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t\\nORDER BY t.favorites 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 first 5 products with reorder levels set at 30."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel = 30\\nRETURN p\\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 in the \"Children\" genre?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Children'})<-[:IN_GENRE]-(m:Movie)\\nWITH avg(m.imdbRating) AS average_rating\\nRETURN average_rating"}]} {"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": "Are there any nodes that are connected with Article where title is Free Field Construction for the ABF Models in Regime II and share a common property with UpdateDate, for which update_date equals 2008-01-29?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Free Field Construction for the ABF Models in Regime II'})-[r]->(n), (d:UpdateDate{update_date:'2008-01-29'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many different statuses do cities have?"}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN COUNT(DISTINCT c.Status)"}]} {"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": "Retrieve the name for Journal that is linked through a PUBLISHED_IN relationship with the Article where title is $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.title='$A_{\\infty}$-structures on an elliptic curve'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the names of all swimmers, sorted by their 100 meter scores in ascending order."}, {"role": "assistant", "content": "MATCH (s:Swimmer)\\nRETURN s.name\\nORDER BY s.meter_100"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2009-10-31 and Article, for which 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?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2009-10-31'}), (b: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 EXISTS((a)-[*]-(b)) AS pathExists"}]} {"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": "Retrieve the name for DOI that is linked through a HAS_DOI 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) -[ha:HAS_DOI]->(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.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 entities with a service provider of 'Mossack Fonseca' and a registered address in 'Samoa'."}, {"role": "assistant", "content": "MATCH (e:Entity { service_provider: 'Mossack Fonseca' })\\nMATCH (e)-[:registered_address]->(a:Address { countries: 'Samoa' })\\nRETURN e.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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "List the course name of courses sorted by credits."}, {"role": "assistant", "content": "MATCH (c:Course)\\nRETURN c.CName\\nORDER BY c.Credits"}]} {"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 are of the type 'FOREIGN FORMED CORPORATION'."}, {"role": "assistant", "content": "MATCH (e:Entity {type: 'FOREIGN FORMED CORPORATION'})\\nRETURN e"}]} {"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 Du!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name =~'Du.*'\\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 the question with the least number of downvotes and is tagged with 'react-apollo'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'react-apollo'\\nWITH min(q.downVotes) AS minDownvotes\\nMATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'react-apollo' AND q.downVotes = minDownvotes\\nRETURN q"}]} {"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": "Find Topic that has a label which begins with t, and is linked to Keyword via HAS_TOPIC relationship, where Keyword has key_id c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id: 'c95a6da6fb331984f198feec0b0bb1a5'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.label STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many residents does each property have? List property id and resident count."}, {"role": "assistant", "content": "MATCH (p:Property)<-[:LIVES_IN]-(r:Resident)\\nRETURN p.property_id, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names of all the employees with role \"HR\"."}, {"role": "assistant", "content": "MATCH (e:Employee {Role_Code:\"HR\"})\\nRETURN e.Employee_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 titles of 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 \"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 games that are played by streams with more than 100 chatters."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(:User)\\nWITH s, count(*) AS chatter_count\\nWHERE chatter_count > 100\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Keyword\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Categories and Keyword!"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r1]-(n)-[r2]->(d:Keyword)\\nRETURN labels(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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first names for all faculty professors, ordered by first name?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Rank = \"Professor\"\\nRETURN f.Fname\\nORDER BY f.Fname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the name and the key_id for those Keyword where name starts with e!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name STARTS WITH 'e'\\nRETURN n.name AS name, n.key_id AS key_id"}]} {"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 q-fin.RM!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'q-fin.RM'})-[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": "List the movies released in the same year as the movie with the highest IMDb rating."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH max(m.imdbRating) AS maxRating\\nMATCH (highestRated:Movie { imdbRating: maxRating })\\nWITH highestRated.year AS releaseYear\\nMATCH (movie:Movie { year: releaseYear })\\nRETURN movie.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 3 categories have the fewest products with units on order?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitsOnOrder > 0\\nWITH c.categoryName AS category, COUNT(p) AS productCount\\nORDER BY productCount ASC\\nLIMIT 3\\nRETURN category, productCount"}]} {"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 602665, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'602665'})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "list the names of the companies with more than 200 sales in the descending order of sales and profits."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Sales_in_Billion > 200\\nRETURN c.Name\\nORDER BY c.Sales_in_Billion, c.Profits_in_Billion DESC"}]} {"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 'INTERACTS3' relationship with a weight above 90."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS3]->(:Character)\\nWHERE r.weight > 90\\nRETURN c"}]} {"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 budget greater than 200 million?"}, {"role": "assistant", "content": "MATCH (movie:Movie)-[:IN_GENRE]->(genre:Genre)\\nWHERE movie.budget > 200000000\\nWITH genre.name AS genreName, count(DISTINCT movie) AS movieCount\\nORDER BY movieCount DESC\\nRETURN genreName, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many gymnasts are there?"}, {"role": "assistant", "content": "MATCH (n:Gymnast)\\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 3 suppliers have the highest average units in stock per product?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, AVG(p.unitsInStock) AS avgUnitsInStock\\nORDER BY avgUnitsInStock DESC\\nLIMIT 3\\nRETURN s.companyName, avgUnitsInStock"}]} {"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 1013, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1013'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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 top 5 movies with the highest revenue in the Adventure genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: \"Adventure\"})\\nWHERE m.revenue IS NOT NULL\\nRETURN m\\nORDER BY m.revenue 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": "Which users have 'Neo4j' mentioned the most in tweets? List the top 3."}, {"role": "assistant", "content": "MATCH (u:User)<-[:MENTIONS]-(t:Tweet)<-[:POSTS]-(:Me {name: 'Neo4j'})\\nRETURN u.name AS user, count(t) AS mentions\\nORDER BY mentions 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 filings with the shortest duration between begin and end in 2005."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin >= datetime('2005-01-01T00:00:00Z') AND f.end <= datetime('2005-12-31T23:59:59Z')\\nWITH f, duration.between(f.begin, f.end) AS duration\\nORDER BY duration ASC\\nLIMIT 5\\nRETURN f.sar_id AS SAR_ID, f.begin AS Begin_Date, f.end AS End_Date, duration AS Duration"}]} {"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 before 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 2000\\nWITH avg(m.budget) AS averageBudget\\nRETURN averageBudget"}]} {"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 ebe5bed51965553359ee9f13db0293e1!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id = 'ebe5bed51965553359ee9f13db0293e1'\\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 users are followed by 'neo4j' and have more than 10000 followers?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nWHERE user.followers > 10000\\nRETURN user.screen_name, user.followers"}]} {"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 associated with the 'Bahamas Leaks'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.sourceID = 'Bahamas Leaks'\\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": "Which 5 products have been reordered the most times?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:ORDERS]->(o:Order)\\nRETURN p.productName, count(o) AS reorderCount\\nORDER BY reorderCount 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 city has the most businesses with an average review rating above 4.5?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, avg(r.stars) AS averageRating\\nWHERE averageRating > 4.5\\nWITH b.city AS city, count(b) AS businessCount\\nRETURN city, businessCount\\nORDER BY businessCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"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 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 traversing through DOI with doi_id fe8768ee88f2d27ed51861639e63a4ff!"}, {"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'})-[*]->(d:DOI{doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})-[*]->(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": "Which directors have directed both a comedy and a drama movie?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Comedy'\\nWITH d, collect(m) AS comedyMovies\\nWHERE exists { \\nMATCH (d)-[:DIRECTED]->(m2:Movie)-[:IN_GENRE]->(g2:Genre) \\nWHERE g2.name = 'Drama' }\\nRETURN d, comedyMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 produced in more than one country?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH m, count(c) AS num_countries\\nWHERE num_countries > 1\\nRETURN m.title AS MovieTitle, num_countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the census ranking of cities whose status are not \"Village\"."}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Status <> \"Village\"\\nRETURN c.Census_Ranking"}]} {"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 been asked by users with more than 2000 reputation and have scores less than 0?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 2000 AND q.score < 0\\nRETURN q.title AS question_title, q.link AS question_link, q.score AS question_score, u.display_name AS user_name, u.reputation AS user_reputation"}]} {"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 highest average review rating?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, avg(r.rating) AS avg_rating\\nRETURN p.name, avg_rating\\nORDER BY avg_rating DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "which shop has happy hour most frequently? List its id and number of happy hours."}, {"role": "assistant", "content": "MATCH (hh:HappyHour)\\nRETURN hh.Shop_ID AS Shop_id, COUNT(*) AS count\\nORDER BY count 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": "Which 3 entities have the most filings as originators and are located in 'China'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)\\nWHERE e.country = 'CHN'\\nRETURN e, count(f) AS filings_count\\nORDER BY filings_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 name of the movie with the highest IMDb rating that is a documentary?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Documentary'})\\nWITH max(m.imdbRating) AS maxRating\\nMATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Documentary'})\\nWHERE m.imdbRating = maxRating\\nRETURN m.title"}]} {"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": "Fetch eight samples of the author_id of the Author and the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Keyword)\\nRETURN n.author_id, m.key_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which authors have first name \"Amal\"? List their last names."}, {"role": "assistant", "content": "MATCH (a:Author {fname:\"Amal\"})\\nRETURN a.lname"}]} {"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 racks contain switches in zone 4 of DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Rack {zone: 4})-[:HOLDS]->(s:Switch)\\nRETURN count(DISTINCT r) AS numberOfRacksWithSwitches"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the dates of publications in descending order of price?"}, {"role": "assistant", "content": "MATCH (p:Publication)\\nRETURN p.Publication_Date\\nORDER BY p.Price 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": "Which movies have a homepage URL specified?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.homepage IS NOT NULL\\nRETURN m.title, m.homepage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for DOI combined with the update_date for UpdateDate, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.name AS Records\\nUNION\\nMATCH (m:UpdateDate)\\nRETURN m.update_date 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": "What are the first 3 movies that have a revenue to budget ratio greater than 3?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue / m.budget > 3\\nRETURN m.title, m.revenue, m.budget\\nORDER BY m.revenue / m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which authors have last name \"Ueno\"? List their first names."}, {"role": "assistant", "content": "MATCH (a:Author)\\nWHERE a.lname = \"Ueno\"\\nRETURN a.fname"}]} {"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": "Look for the abstract of the Article that is not related to the Author with the first_name Marco!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {first_name: 'Marco'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.abstract"}]} {"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 2015!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2021-02-09' AND date(n.update_date).year = 2015\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What document type codes do we have?"}, {"role": "assistant", "content": "MATCH (d:RefDocumentType)\\nRETURN d.document_type_code"}]} {"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 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.incorporation_date AS incorporation_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 10 and Author, for which first_name is Maciej?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'10'}), (b:Author{first_name:'Maciej'})\\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 three movies reviewed with a rating above 90."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.rating > 90\\nRETURN m.title\\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 location and name for all stadiums with a capacity between 5000 and 10000."}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nWHERE 5000<=stadium.capacity<=10000\\nRETURN stadium.location,stadium.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 shortest movies with an imdbRating above 6.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating > 6.0\\nRETURN m.title, m.runtime, m.imdbRating\\nORDER BY m.runtime ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "List all location codes and location names."}, {"role": "assistant", "content": "MATCH (r:RefLocation)\\nRETURN r.Location_Code, r.Location_Name"}]} {"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 2007-05-23!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = date('2007-05-23')\\nRETURN n"}]} {"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 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 (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]->()\\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": "List all businesses and their corresponding reviews from 'Burlingame'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.city = 'Burlingame'\\nRETURN b.name AS businessName, r.text AS reviewText, r.stars AS reviewStars, r.date AS reviewDate"}]} {"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 originating from countries with `tld` \"US\"?"}, {"role": "assistant", "content": "MATCH (c:Country {tld: 'US'})\\nMATCH (e:Entity)-[:COUNTRY]->(c)\\nMATCH (e)-[:FILED]->(f:Filing)\\nRETURN count(DISTINCT f) AS totalFilings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Please show the nominee who has been nominated the greatest number of times."}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWITH m.Nominee AS nominee, COUNT(m) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN nominee"}]} {"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 roles played by actors in the first 3 movies directed by Nancy Meyers."}, {"role": "assistant", "content": "MATCH (director:Person {name: \"Nancy Meyers\"})-[:DIRECTED]->(movie:Movie)\\nWITH movie\\nORDER BY movie.released\\nLIMIT 3\\nMATCH (actor:Person)-[actedIn:ACTED_IN]->(movie)\\nRETURN movie.title AS MovieTitle, actor.name AS ActorName, actedIn.roles AS Roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"VisitsRestaurant\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Time\": \"STRING\",\n \"ResID\": \"INTEGER\",\n \"Spent\": \"FLOAT\"\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 \"RestaurantType\": {\n \"properties\": {\n \"ResTypeName\": \"STRING\",\n \"ResTypeDescription\": \"STRING\",\n \"ResTypeID\": \"INTEGER\"\n }\n },\n \"Restaurant\": {\n \"properties\": {\n \"ResName\": \"STRING\",\n \"Rating\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"ResID\": \"INTEGER\"\n }\n },\n \"TypeOfRestaurant\": {\n \"properties\": {\n \"ResID\": \"INTEGER\",\n \"ResTypeID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VisitsRestaurant\",\n \"type\": \"VISITED\",\n \"to\": \"Restaurant\"\n }\n ]\n}"}, {"role": "user", "content": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name."}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Age > 18 AND s.Major <> 600 AND s.Sex = 'F'\\nRETURN s.Fname, s.LName"}]} {"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": "Return the label for Topic combined with the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.author_id AS Records"}]} {"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": "Find the shortest path between Report where report_id is 29dd136962e1058fc290913daf242fec and Topic, with cluster equal 5, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_id:'29dd136962e1058fc290913daf242fec'})-[*]-(e:Topic{cluster:'5'}))\\nRETURN nodes(p)"}]} {"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 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 are PUBLISHED_IN linked to a Journal?"}, {"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. '})-[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 \"Article\": {\n \"properties\": {\n \"title\": \"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 title equal to Summation and transformation formulas for elliptic hypergeometric series, passing through Author via WRITTEN_BY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Summation and transformation formulas for elliptic hypergeometric series'})-[:WRITTEN_BY]->(c:Author)-[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": "Which users have reviewed more than one business?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWITH u, COUNT(DISTINCT b) AS businessCount\\nWHERE businessCount > 1\\nRETURN u.name AS userName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and damage in millions for storms, ordered by their max speeds descending?"}, {"role": "assistant", "content": "MATCH (s:Storm)\\nRETURN s.Name, s.Damage_millions_USD\\nORDER BY s.Max_speed DESC"}]} {"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": "Return the specifications for Categories combined with the title for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.title AS Records"}]} {"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 have a common property with Article where article_id is 4179 and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'4179'})-[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 \"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 11 and share a common property with Article, for which title equals Maslov class and minimality in Calabi-Yau manifolds?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'})-[r]->(n), (d:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})\\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 5 users have interacted with the most users with a size over 2?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->(v:User)\\nWHERE v.size > 2\\nWITH u, COUNT(DISTINCT v) AS interactionCount\\nRETURN u.label AS user, interactionCount\\nORDER BY interactionCount 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 top 3 producers of movies with a tagline including 'Speed'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.tagline CONTAINS 'Speed'\\nRETURN p.name AS producer, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"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": "Return the grade that has the greatest number of high schoolers."}, {"role": "assistant", "content": "MATCH (highschooler:Highschooler)\\nRETURN highschooler.grade\\nORDER BY highschooler.grade 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": "Find the officers who are 'officer_of' entities that have a 'same_as' relationship with entities that have a 'registered_address' in 'Hong Kong'."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e1:Entity)-[:same_as]->(e2:Entity)-[:registered_address]->(a:Address)\\nWHERE a.countries = 'Hong Kong'\\nRETURN DISTINCT o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the id of each employee and the number of document destroyed by that employee?"}, {"role": "assistant", "content": "MATCH (d:DocumentsToBeDestroyed)\\nRETURN d.Destroyed_by_Employee_ID, count(*)"}]} {"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": "\"톰크루즈 주연의 war 영화는 무엇이 있는가?\""}, {"role": "assistant", "content": "MATCH (a:Actor {name: \"Tom Cruise\"})-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: \"War\"})\\nRETURN m.title AS MovieTitle, m.year AS ReleaseYear, m.imdbRating AS IMDbRating"}]} {"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 that have 'INTERACTS1' relationship with a weight above 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 \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses are located in Los Angeles county and opened after 1950?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.County = \"Los Angeles\" AND c.Year > 1950\\nRETURN c.Campus"}]} {"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": "\"get a list of all unique tags\""}, {"role": "assistant", "content": "MATCH (:Question)-[:TAGGED]->(tag:Tag)\\nRETURN DISTINCT tag.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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first names of students, ordered by age from greatest to least?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Fname\\nORDER BY s.Age 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": "Show the top 3 streams with the most moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, size([(s)<-[:MODERATOR]-(m) | m]) AS num_moderators\\nORDER BY num_moderators DESC\\nLIMIT 3\\nRETURN s.name AS stream_name, num_moderators"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both UpdateDate and Report!"}, {"role": "assistant", "content": "MATCH (c:UpdateDate)<-[r1]-(n)-[r2]->(d:Report)\\nRETURN labels(n)"}]} {"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 singers do we have?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\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": "What is the average budget of science fiction movies?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Science Fiction'})<-[:IN_GENRE]-(m:Movie)\\nWITH avg(m.budget) AS averageBudget\\nRETURN averageBudget"}]} {"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 difference between movies directed by the same person?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m1:Movie)\\nMATCH (p)-[:DIRECTED]->(m2:Movie)\\nWHERE id(m1) < id(m2)\\nWITH m1, m2, abs(avg(m1.rating) - avg(m2.rating)) AS rating_diff\\nRETURN avg(rating_diff) AS average_rating_difference"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"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 Leoni and traversing through Author with first_name Randall!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Leoni'})-[*]->(d:Author{first_name:'Randall'})-[*]->(n)\\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 },\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 23 pages, 1 figure!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '23 pages, 1 figure'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'j'\\nRETURN m"}]} {"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 An adelic causality problem related to abelian L-functions!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'An adelic causality problem related to abelian L-functions'\\nRETURN n"}]} {"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 singers are from each country?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWITH singer.Country AS Country, count(singer.Country) AS count\\nRETURN Country,count"}]} {"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": "Are there any nodes that are connected with Journal where name is Geom. Topol and share a common property with Author, for which last_name equals Burnol?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'})-[r]->(n), (d:Author{last_name:'Burnol'})\\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 first 3 movies released after 2010?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year > 2010\\nRETURN m.title, m.released\\nORDER BY m.released\\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 top 5 filings with the largest amounts that concern entities in 'China'."}, {"role": "assistant", "content": "MATCH (c:Country {name: 'China'})<-[:COUNTRY]-(e:Entity)<-[:CONCERNS]-(f:Filing)\\nRETURN f\\nORDER BY f.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": "Identify all users who have reviewed businesses on 'E Front St' and the names of those businesses."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.address CONTAINS 'E Front St'\\nRETURN u.name AS userName, b.name AS businessName"}]} {"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 33657234da1dc070ea09e7c31bb86abb!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '33657234da1dc070ea09e7c31bb86abb'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"airlines\": {\n \"properties\": {\n \"uid\": \"STRING\",\n \"airline\": \"STRING\",\n \"abbreviation\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"airports\": {\n \"properties\": {\n \"city ( Aberdeen )\": \"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": "Find the name of airports which do not have any flight in and out."}, {"role": "assistant", "content": "MATCH (airports:airports)\\nWHERE NOT (airports)-[]-(:flights) \\nRETURN airports.AirportName"}]} {"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 users have reviewed businesses on 'E Front St'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.address CONTAINS 'E Front St'\\nRETURN u.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": "Who are the top 3 actors in terms of movies acted in from 1990 to 2000?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released <= 2000\\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 \"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 1069 and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1069'})-[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 \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "How many faculty, in total, are there in the year 2002?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Year = 2002\\nRETURN SUM(f.Faculty)"}]} {"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 2010-06-18 and list their properties, including those of UpdateDate!"}, {"role": "assistant", "content": "MATCH (b:UpdateDate)-[r]->(n)\\nWHERE b.update_date = '2010-06-18'\\nRETURN properties(b) AS UpdateDate_props, 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 is the average reorderLevel for products that have been ordered in quantities greater than 100?"}, {"role": "assistant", "content": "MATCH ()-[:ORDERS]->(p:Product)\\nWHERE p.unitsOnOrder > 100\\nRETURN avg(p.reorderLevel)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What are the catalog entry names of the products with next entry ID above 8?"}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nWHERE cc.next_entry_id > 8\\nRETURN cc.catalog_entry_name"}]} {"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 Classification of Subsystems for Local Nets with Trivial Superselection\n Structure and PUBLISHED_IN has pages on 89-106!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '89-106'}]->(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 \"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_iso' values for filings where the originator bank is 'CIMB Bank Berhad' and the amount is greater than 500,000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank = \"CIMB Bank Berhad\" AND f.amount > 500000\\nRETURN DISTINCT f.beneficiary_iso"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the different headquarters and number of companies at each headquarter."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Headquarters, 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 reviewed the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nRETURN p.name, count(m) AS movies_reviewed\\nORDER BY movies_reviewed DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Topic for which description is 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.'})-[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": "What is the most common language among movies with a budget lower than 10 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget < 10000000\\nUNWIND m.languages AS language\\nWITH language, count(*) AS count\\nORDER BY count DESC\\nRETURN language\\nLIMIT 1"}]} {"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": "Fetch eight samples of the first_name of the Author and the name for Journal!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Journal)\\nRETURN n.first_name, m.name\\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 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 languages_spoken\\nORDER BY languages_spoken DESC\\nRETURN m.title, languages_spoken\\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 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, m.votes\\nORDER BY m.votes\\nLIMIT 5"}]} {"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 Jean-Francois, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Jean-Francois'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of the campuses opened before 1800."}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year < 1800\\nRETURN c.Campus"}]} {"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 mentioning 'sandwich' at 'Farmer's Market'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'sandwich' AND r.text CONTAINS \"Farmer's Market\"\\nRETURN b.name, b.address, b.city, b.state, b.businessId\\nLIMIT 3"}]} {"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 99571eecaa5c5d622bb0d1f855752d5f and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'99571eecaa5c5d622bb0d1f855752d5f'})-[r]->(n)\\nRETURN properties(n), 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": "List the top 5 videos by the number of countries they were produced in."}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH v, count(c) AS countriesProducedIn\\nORDER BY countriesProducedIn DESC\\nLIMIT 5\\nRETURN v.title, countriesProducedIn"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the number of faculty lines in campus \"Long Beach State University\" in 2002?"}, {"role": "assistant", "content": "MATCH (f:Faculty)-[:TEACHES]->(c:Campus)\\nWHERE f.Year = 2002 AND c.Campus = \"Long Beach State University\"\\nRETURN f.Faculty"}]} {"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 are registered with the sourceID \"Panama Papers\"?"}, {"role": "assistant", "content": "MATCH (o:Officer {sourceID: \"Panama Papers\"})\\nRETURN count(o) AS officerCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"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 Categories where specifications is math.GT and traversing through Topic with label Linear Algebra_1!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.GT'})-[*]->(d:Topic{label:'Linear Algebra_1'})-[*]->(n)\\nRETURN n"}]} {"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 Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Free Field Construction for the ABF Models in Regime II'})-[*]->(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": "What are the first 3 businesses reviewed in 2018?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2018-01-01') AND r.date < date('2019-01-01')\\nRETURN b.name, r.date\\nORDER BY r.date ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the census rankings of cities that do not have the status \"Village\"?"}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Status <> \"Village\"\\nRETURN c.Census_Ranking"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Author for which last_name is Dougherty, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dougherty'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Author where first_name is A., and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'A.'})-[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_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 SPbU-IP-00-03!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'SPbU-IP-00-03'})-[r]->()\\nRETURN 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": "What is the total revenue generated by orders that include products with a discount?"}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product)\\nWHERE rel.discount > 0\\nWITH o, sum(toFloat(rel.unitPrice) * rel.quantity * (1 - toFloat(rel.discount))) AS orderRevenue\\nRETURN sum(orderRevenue) AS totalRevenue"}]} {"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 have also directed a movie?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE exists { \\nMATCH (a)-[:DIRECTED]->(:Movie) }\\nRETURN DISTINCT 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 \"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 521-554 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '521-554'}]->(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 \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many of Dr. Williams' patients have had a surgery?"}, {"role": "assistant", "content": "MATCH (d:Doctor)<-[:HAS_DOCTOR]-(p:Patient)-[:HAD_SURGERY]->(:Surgery)\\nWHERE d.name = 'Dr. Williams'\\nRETURN count(DISTINCT p) as totalPatients"}]} {"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 label is not Linear Algebra_1!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label <> 'Linear Algebra_1'\\nRETURN DISTINCT n.description AS description"}]} {"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 J. Daniel!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'J. Daniel'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 700c655b31f9b9275ba10a9875c15332, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[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 \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Keyword where key_id ends with 46!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id =~'46.*'\\nRETURN n"}]} {"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 is the best movie?\""}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title AS Movie, m.votes AS Votes\\nORDER BY m.votes 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 movies have been produced by 'Pixar Animation Studios' and have a runtime under 100 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.runtime < 100\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find products with max page size as \"A4\" and pages per minute color smaller than 5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.max_page_size = \"A4\" AND p.pages_per_minute_color < 5\\nRETURN p.Product"}]} {"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 is Category theory_3!"}, {"role": "assistant", "content": "MATCH (n:Topic {label:'Category theory_3'})\\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": "Identify 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 \"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 most recent reviews."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r.date AS reviewDate, r.text AS reviewText, r.stars AS reviewStars, u.name AS userName, b.name AS businessName\\nORDER BY r.date 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 that have been released on Christmas Day."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released ENDS WITH \"-12-25\"\\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": "Show businesses that have been reviewed with exactly 5 stars."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars = 5.0\\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": "What are the top 5 most recent movies in the database and their genres?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nRETURN m.title AS movieTitle, m.released AS releaseDate, collect(g.name) AS genres\\nORDER BY m.released 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": "What color is the AUTUMN TANK variety liked by customers who also liked the Oslo dress?"}, {"role": "assistant", "content": "MATCH (oslo:Article {prodName: 'Oslo dress'})-[:CUSTOMERS_ALSO_LIKE]->(liked:Article)-[:VARIANT_OF]->(product:Product {prodName: 'AUTUMN TANK'})\\nRETURN liked.colourGroupName"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names and last names of male (sex is M) faculties who live in building NEB."}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Sex = \"M\" AND f.Building = \"NEB\"\\nRETURN f.Fname, f.Lname"}]} {"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 three tweets have the most mentions of other users?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User)\\nWITH t, COUNT(u) AS mention_count\\nORDER BY mention_count DESC\\nLIMIT 3\\nRETURN t.id_str AS tweet_id, t.text AS tweet_text, mention_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 first 3 entities that have been beneficiaries in filings with an amount over 50 million USD."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.amount > 50000000\\nRETURN e.name AS beneficiary_entity\\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 the first 3 genres most frequently linked to movies directed by 'Steven Spielberg'."}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Steven Spielberg'})-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nRETURN g.name AS Genre, count(m) AS MoviesCount\\nORDER BY MoviesCount 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 3 movies that were produced by 'Pixar Animation Studios' and have a runtime longer than 90 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.runtime > 90\\nRETURN m.title, m.runtime\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"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 are at the end of a path starting from Keyword, with key_id equal to 72e4f3fc2930bd3a0a7730a664d069d6, passing through Topic via HAS_TOPIC?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[:HAS_TOPIC]->(c:Topic)-[r]->(n)\\nRETURN n"}]} {"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": "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 Keyword, for which name equals logarithms?"}, {"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:Keyword{name:'logarithms'})\\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": "What are the properties of nodes connected to Author for which last_name is Dunajski, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.last_name = 'Dunajski'\\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": "Provide the names of all products that have a quantity per unit description containing 'bottles'."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.quantityPerUnit CONTAINS 'bottles'\\nRETURN p.productName AS 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": "Who are the customers in the 'NULL' region?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.region = 'NULL'\\nRETURN c.contactName AS customerName, c.companyName AS companyName"}]} {"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 1056 or article_id is less than 1056!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1056 OR n.article_id < 1056\\nRETURN n\\nLIMIT 8"}]} {"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: 3082 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '3082'}) -[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": "What is the average length of the reviews written by each user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, avg(size(r.text)) AS avgReviewLength\\nRETURN u.name AS userName, avgReviewLength"}]} {"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 stadium name and capacity with most number of concerts in year 2014 or after."}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWHERE T1.Year >= 2014\\nWITH T2.Name AS Name, count(T2.Stadium_ID) AS count, T2.Capacity AS Capacity\\nRETURN Name,Capacity\\nORDER BY count 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": "List all businesses 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"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the different membership levels?"}, {"role": "assistant", "content": "MATCH (n:Member)\\nRETURN count(DISTINCT n.Level)"}]} {"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 with addresses starting with '301' and list their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address STARTS WITH '301'\\nRETURN b.name AS businessName, c.name AS categoryName"}]} {"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.GT!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.GT'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 which movie has the highest rating with at least 6 reviews?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-()\\nWITH m, COUNT(r) AS reviewCount, AVG(r.rating) AS avgRating\\nWHERE reviewCount >= 6\\nRETURN m.title AS movieTitle, avgRating\\nORDER BY avgRating DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "How many members are not living in Hartford?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nWHERE m.Address <> 'Hartford'\\nRETURN count(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": "What are the names of the first 3 routers located in zone 1 in the data center?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Router {zone: 1})\\nRETURN r.name\\nORDER BY r.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": "Identify the first 5 actors who have acted in movies with a budget less than 50 million dollars."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget < 50000000\\nRETURN a\\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 countries have produced the most movies with a runtime longer than 120 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE m.runtime > 120\\nRETURN c.name AS country, COUNT(m) AS movie_count\\nORDER BY movie_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": "How many users have written reviews for 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Missoula Public Library'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN count(DISTINCT u) AS NumberOfUsers"}]} {"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 asked by 'Christopher'."}, {"role": "assistant", "content": "MATCH (u:User {display_name: 'Christopher'})-[:ASKED]->(q:Question)\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"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 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 benefited from filings where the beneficiary bank is located in the United Kingdom?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = \"United Kingdom\"\\nRETURN DISTINCT e.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 \"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 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 Journal, where year is 2001?"}, {"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 {year :'2001'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 product code for the 'COZY WRAP TOP LS'?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'COZY WRAP TOP LS'\\nRETURN p.productCode"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many comments has Charlie made?"}, {"role": "assistant", "content": "MATCH (u:User{name:'Charlie'})-[r:CREATED]->(c:Comment)\\nRETURN COUNT(c) 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": "What are the top 5 most popular movies released before 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date < date('2000-01-01') AND m.popularity IS NOT NULL\\nRETURN m\\nORDER BY m.popularity 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 entities have 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 DISTINCT e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal for which journal_id is d3b321ed42589ea798c241aa7de23d2d, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.journal_id = 'd3b321ed42589ea798c241aa7de23d2d'\\nRETURN properties(n) AS props, r"}]} {"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 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 Article, with comments equal no comments, 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:Article{comments:'no comments'}))\\nRETURN nodes(p)"}]} {"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 9301481d98615f874763a17d18e2dc92 and Categories, for which category_id equals b1d13c8b6874949821d038a8a71379d1?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'9301481d98615f874763a17d18e2dc92'})-[*]->(d:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})\\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 all nodes directly connected to the UpdateDate that has update_date 2014-01-15!"}, {"role": "assistant", "content": "MATCH path=(:UpdateDate {update_date:'2014-01-15'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_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 last_name is Dunajski and traversing through Categories with category_id 088fbf884bd7c6533956a45531b362b7!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[*]->(d:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[*]->(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 orders placed by customers in 'Berlin' that have a shipped date in 1997."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE c.city = 'Berlin' AND o.shippedDate STARTS WITH '1997'\\nRETURN o.orderID AS orderID, o.shippedDate AS shippedDate, c.companyName AS customerName, p.productName AS productName"}]} {"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 retweeted by 'Me'."}, {"role": "assistant", "content": "MATCH (me:Me)-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)<-[:POSTS]-(user:User)\\nRETURN user.screen_name AS retweeted_user"}]} {"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": "Are there any nodes that are connected 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 share a common property with Author, for which first_name equals Lionel J.?"}, {"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]->(n), (d:Author{first_name:'Lionel J.'})\\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": "List the first 5 orders that included products from at least three different categories."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH o, COUNT(DISTINCT c.categoryID) AS categoryCount\\nWHERE categoryCount >= 3\\nRETURN o.orderID, o.orderDate, o.shipName, o.shipCity, o.shipCountry\\nORDER BY o.orderDate\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Keyword where name is gain and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'gain'})-[r]->(n)\\nRETURN properties(n), 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 revenue generated by orders shipped in the year 1996?"}, {"role": "assistant", "content": "MATCH (o:Order)-[orders:ORDERS]->(p:Product)\\nWHERE o.shippedDate STARTS WITH '1996'\\nWITH o, toFloat(orders.unitPrice) * orders.quantity AS revenue\\nRETURN sum(revenue) AS 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": "List the top 3 videos that have been produced by 'Pixar Animation Studios' and have a runtime shorter than 50 minutes."}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE v.runtime < 50\\nRETURN v.title, v.runtime\\nORDER BY v.runtime 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 most common tags for questions that have been asked by users with a display name containing 'Le'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE u.display_name CONTAINS 'Le'\\nRETURN t.name AS tag, COUNT(*) AS tag_count\\nORDER BY tag_count DESC\\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": "Which 3 directors have directed the most movies released after 2005?"}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.released > 2005\\nWITH d, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 3\\nRETURN d.name AS director, num_movies"}]} {"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]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN COUNT(DISTINCT b) AS numberOfBusinessesReviewed"}]} {"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\\nORDER BY s.createdAt 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": "Display the top 5 streams that play the game 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\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 \"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 oldest actors in the database."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.born IS NOT NULL\\nRETURN a.name, a.born\\nORDER BY a.born ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the first_name for Author combined with the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.first_name AS Records\\nUNION ALL\\nMATCH (m:Topic)\\nRETURN m.description AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the name, role code, and date of birth for the employee with name 'Armani'."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.Employee_Name = \"Armani\"\\nRETURN e.Employee_Name, e.Role_Code, e.Date_of_Birth"}]} {"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.name) AS unique_games"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the location code of the country \"Canada\"."}, {"role": "assistant", "content": "MATCH (n:RefLocation)\\nWHERE n.Location_Name = \"Canada\"\\nRETURN n.Location_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": "Find the top 5 customers who have ordered the product 'Chai'."}, {"role": "assistant", "content": "MATCH (p:Product {productName: 'Chai'})<-[:ORDERS]-(o:Order)<-[:PURCHASED]-(c:Customer)\\nRETURN c.companyName, COUNT(o) AS orderCount\\nORDER BY orderCount 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 jacket product is the most purchased?"}, {"role": "assistant", "content": "MATCH (:Customer)-[p:PURCHASED]->(a:Article)-[:VARIANT_OF]->(pr:Product {productTypeName: \"Jacket\"})\\nRETURN pr.prodName, COUNT(p) AS purchaseCount\\nORDER BY purchaseCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the name of the building that has the most company offices."}, {"role": "assistant", "content": "MATCH (c:Company)-[:LOCATED_IN]->(b:Building)\\nWITH b.name AS name, COUNT(*) AS count\\nRETURN name\\nORDER BY count 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": "Which addresses are linked to more than one entity as their registered address?"}, {"role": "assistant", "content": "MATCH (a:Address)<-[:registered_address]-(e:Entity)\\nWITH a, COUNT(e) AS entityCount\\nWHERE entityCount > 1\\nRETURN a.address AS Address, entityCount"}]} {"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 are at the end of a path starting from Article, with comments equal to 26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt\n 2005, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt 2005'})-[: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 is the total number of businesses in the database?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nRETURN count(b)"}]} {"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": "Are there any nodes that are connected with Categories where specifications is math.IT and share a common property with Article, for which comments equals LaTeX2e, 36 pages ; Some misprints are corrected?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.IT'})-[r]->(n), (d:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {}\n },\n \"Journal\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both UpdateDate and Journal!"}, {"role": "assistant", "content": "MATCH (c:UpdateDate)<-[r1]-(n)-[r2]->(d:Journal)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to UpdateDate where update_date is 2018-11-28, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:UpdateDate{update_date:'2018-11-28'})-[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": "What are the names of the entities that filed filings where the amount is greater than 1000000 and the originator bank is \"CIMB Bank Berhad\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.amount > 1000000 AND f.originator_bank = \"CIMB Bank Berhad\"\\nMATCH (e:Entity)-[:FILED]->(f)\\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": "Which characters have a centrality less than 0.1?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality < 0.1\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the card numbers, names, and hometowns of every member ordered by descending level?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nRETURN m.Card_Number, m.Name, m.Hometown\\nORDER BY m.Level DESC"}]} {"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 suppliers based on the number of cities they supply to."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)<-[:ORDERS]-(o:Order)\\nWITH s, COLLECT(DISTINCT o.shipCity) AS cities\\nRETURN s.companyName AS supplier, SIZE(cities) AS cityCount\\nORDER BY cityCount DESC\\nLIMIT 5"}]} {"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": "How many documents do we have?"}, {"role": "assistant", "content": "MATCH (documents:Documents)\\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": "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"}]} {"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_id is d4a4409b7e8a77f4894c998a04162257 or report_no is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = 'd4a4409b7e8a77f4894c998a04162257' OR n.report_no IS NOT NULL\\nRETURN DISTINCT n.report_no AS report_no"}]} {"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 c3c968646b7780fada2a98b2a5a61746, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'c3c968646b7780fada2a98b2a5a61746'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"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": "Are there any nodes that are connected with Keyword where name is super-population viewpoint and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'super-population viewpoint'})-[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 \"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 before June 2020."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt < datetime(\"2020-06-01T00:00:00Z\")\\nRETURN q.title, q.link, q.createdAt"}]} {"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 3 valid_until dates for relationships connected to Addresses."}, {"role": "assistant", "content": "MATCH ()-[r]->(a:Address)\\nWITH collect(DISTINCT r.valid_until) AS valid_untils\\nRETURN valid_untils[..3] AS first_3_valid_untils"}]} {"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 on dates later than '1997-01-01'?"}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.orderDate > '1997-01-01'\\nRETURN p.productName AS productName, o.orderDate AS orderDate"}]} {"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 both a 'Comedy' and a 'Drama' movie?"}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Comedy'\\nWITH DISTINCT actor\\nMATCH (actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Drama'\\nWITH DISTINCT actor.name AS actorName\\nRETURN actorName"}]} {"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.1016/S0764-4442(00)00217-2!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0764-4442(00)00217-2'})-[*2]->(n)\\nRETURN DISTINCT 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": "Find all nodes directly connected to the Keyword that has key_id 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH path=(:Keyword {key_id:'5d6533e2a77e3daabc184ee8f2441597'})-->()\\nRETURN path"}]} {"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_lng' and 'beneficiary_lng' values are within 10 degrees of each other?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE abs(toFloat(f.originator_lng) - toFloat(f.beneficiary_lng)) <= 10\\nWITH DISTINCT f\\nRETURN count(f) AS totalFilings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between DOI where name is 10.1007/PL00005532 and DOI, for which name equals 10.1016/S0040-9383(00)00015-X?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1007/PL00005532'})-[*]->(d:DOI{name:'10.1016/S0040-9383(00)00015-X'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Return the names of the regions affected by storms that had a death count of at least 10."}, {"role": "assistant", "content": "MATCH (r:Region)-[:AFFECTS]-(s:Storm)\\nWHERE s.Number_Deaths >= 10\\nRETURN r.Region_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the name of the DOI and the abstract for Article!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nMATCH (m:Article)\\nRETURN n.name, m.abstract\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average horizontal bar points for all gymnasts?"}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN avg(g.Horizontal_Bar_Points)"}]} {"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": "Return the description for Topic combined with the report_id for Report!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.description AS Records\\nUNION ALL\\nMATCH (m:Report)\\nRETURN m.report_id AS Records"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the rooms of faculties with rank professor who live in building NEB."}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Rank = \"Professor\" AND f.Building = \"NEB\"\\nRETURN f.Room"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 in the genre 'Drama'?"}, {"role": "assistant", "content": "MATCH (c:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nRETURN c.name AS company, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts."}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN s.Name, s.Location\\nORDER BY s.Annual_entry_exit, s.Annual_interchanges"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London."}, {"role": "assistant", "content": "MATCH (b:Branch)\\nWHERE b.Open_year = '2011' OR b.City = 'London'\\nRETURN min(b.Membership_amount), max(b.Membership_amount)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Return the names of all regions other than Denmark."}, {"role": "assistant", "content": "MATCH (r:Region)\\nWHERE r.Region_name <> 'Denmark'\\nRETURN r.Region_name"}]} {"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 is the name and nation of the singer who have a song having 'Hey' in its name?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.song_name =~'.*[H|h]ey.*'\\nRETURN singer.name,singer.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 by number of followers?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:FOLLOWS]->(actor:Person)\\nWITH actor, count(p) AS followers\\nORDER BY followers DESC\\nLIMIT 3\\nRETURN actor.name, followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are all role codes?"}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN r.role_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code ( CV )\": \"STRING\",\n \"template_type_description ( CV )\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code ( CV )\": \"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 ( Robbin CV )\": \"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 type codes and descriptions for all template types?"}, {"role": "assistant", "content": "MATCH (ref_template_types:Ref_Template_Types)\\nRETURN ref_template_types.Template_Type_Code,ref_template_types.Template_Type_Description"}]} {"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": "Find nodes that are at the end of a path starting at Keyword where key_id is 72e4f3fc2930bd3a0a7730a664d069d6 and traversing through Author with author_id befdd60b44b9cd4d5ffc084ce31d92d4!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[*]->(d:Author{author_id:'befdd60b44b9cd4d5ffc084ce31d92d4'})-[*]->(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 nodes that are connected to Keyword where key_id is 72e4f3fc2930bd3a0a7730a664d069d6 and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.key_id = '72e4f3fc2930bd3a0a7730a664d069d6'\\nRETURN properties(b) AS Keyword_props, 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": "List the top 5 questions by users who have a link ending in 'alexandre'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.link ENDS WITH 'alexandre'\\nRETURN q\\nORDER BY q.score 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": "Can you list the top 5 movies that are 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.title AS MovieTitle, num_collections\\nORDER BY num_collections 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 for which category_id starts with c, 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 'c'\\nWITH n.category_id AS category_id SKIP 2\\nLIMIT 2\\nRETURN category_id"}]} {"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": "How many courses in total are listed?"}, {"role": "assistant", "content": "MATCH (courses:Courses)\\nRETURN count(*)"}]} {"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 b1d13c8b6874949821d038a8a71379d1 and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(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 is the average and maximum capacities for all stadiums ?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN avg(stadium.capacity),max(stadium.capacity)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who is Alice friends with?"}, {"role": "assistant", "content": "MATCH (alice:User {name: 'Alice'})-[:FRIENDS_WITH]->(friend:User)\\nRETURN friend.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": "Which 3 directors have the highest average vote for their movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CREW_FOR {job: 'Director'}]->(m:Movie)\\nWITH p, avg(m.average_vote) AS avg_vote\\nRETURN p.name AS director, avg_vote\\nORDER BY avg_vote 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 all entities with a struck_off_date in February 2013 and a service provider of 'Mossack Fonseca'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date STARTS WITH \"15-FEB-2013\" AND e.service_provider = \"Mossack Fonseca\"\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\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 article_id is 603207!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.article_id='603207'\\nRETURN m.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Article for which comments is no comments!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'no comments'})-[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 number of followers for streams that have the language \"en\" and have at least one moderator who also moderates a stream with the language \"ru\" and have at least one VIP?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nMATCH (s)-[:MODERATOR]->(m:User)-[:MODERATOR]->(s2:Stream)-[:HAS_LANGUAGE]->(l2:Language)\\nWHERE l2.name = \"ru\" AND EXISTS ((s)-[:VIP]->())\\nWITH DISTINCT s\\nRETURN avg(s.followers) AS average_followers"}]} {"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 contains f663b!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id CONTAINS 'f663b'\\nRETURN n"}]} {"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 PAM-780!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'PAM-780'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 tweets where 'neo4j' is mentioned and the tweet is a retweet."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {screen_name: 'neo4j'})\\nWHERE EXISTS { (t)-[:RETWEETS]->(:Tweet) }\\nRETURN t\\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 users who have retweeted tweets mentioning 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:RETWEETS]->(original:Tweet)-[:MENTIONS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u.screen_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 genres that are most frequently targeted by packages."}, {"role": "assistant", "content": "MATCH (p:Package)-[:PROVIDES_ACCESS_TO]->(g:Genre)\\nWITH g, count(p) AS packagesCount\\nORDER BY packagesCount DESC\\nRETURN g.name AS Genre, packagesCount\\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 Queen Sweater categorized in garment groups?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Queen Sweater'})-[:VARIANT_OF]->(p:Product)\\nRETURN p.garmentGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Return all distinct detention type codes."}, {"role": "assistant", "content": "MATCH (d:Detention)\\nRETURN DISTINCT d.detention_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 associated with movies that have a budget over $50 million."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.budget > 50000000\\nWITH g, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3\\nRETURN g.name AS genre, count"}]} {"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 ( Joseph Kuhr )\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the number of cartoones written by Joseph Kuhr?"}, {"role": "assistant", "content": "MATCH (cartoon:Cartoon)\\nWHERE cartoon.Written_by = 'Joseph Kuhr'\\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": "Which characters have a book1PageRank exactly 0.15?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank = 0.15\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List all the event names by year from the most recent to the oldest."}, {"role": "assistant", "content": "MATCH (e:Event)\\nRETURN e.Name\\nORDER BY e.Year DESC"}]} {"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 movies reviewed with a rating over 90."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 90\\nRETURN m.title AS MovieTitle\\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 cb!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id =~'cb.*'\\nRETURN n"}]} {"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": "Is there a path connecting Categories where category_id is 33657234da1dc070ea09e7c31bb86abb and Topic, for which label is Topology_5?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'}), (b:Topic{label:'Topology_5'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"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 Categories where specifications is math.IT and traversing through Keyword with name super-exponential growth!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.IT'})-[*]->(d:Keyword{name:'super-exponential growth'})-[*]->(n)\\nRETURN n"}]} {"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 journal_id is not 79942321e19994e38ad2e372af21c893!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id <> '79942321e19994e38ad2e372af21c893'\\nRETURN DISTINCT n.journal_id AS journal_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": "What is the zone of the router named 'DC1-R-3'?"}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-R-3'})\\nRETURN r.zone"}]} {"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)\\nWHERE c.pagerank > 0.5 AND EXISTS { (c)-[i:INTERACTS]->(other:Character) \\nWHERE i.weight > 200 }\\nRETURN c.name AS character, c.pagerank AS pagerank"}]} {"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 reviews that mention 'selection'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.text CONTAINS 'selection'\\nRETURN r, u, b\\nORDER BY r.stars 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 users have asked questions tagged with 'angular'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'angular'})\\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": "Which questions have a link containing 'stackoverflow.com/questions'?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.link CONTAINS 'stackoverflow.com/questions'\\nRETURN q.title AS title, q.link AS link"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 original language is not English."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWHERE l.id <> 'en'\\nRETURN m.title AS MovieTitle, l.name AS OriginalLanguage"}]} {"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 has 'Neo4j' retweeted the most? List the top 3 users."}, {"role": "assistant", "content": "MATCH (neo:User {name: 'Neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)-[:POSTS]-(retweetedUser:User)\\nWHERE neo.name IS NOT NULL\\nRETURN retweetedUser.name, count(retweetedTweet) AS retweets\\nORDER BY retweets 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 in Missoula and have a businessId starting with 'b3'?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.city = 'Missoula' AND b.businessId STARTS WITH 'b3'\\nRETURN b.name, b.address, b.businessId"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments is Correct some minor mistakes and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'Correct some minor mistakes'})-[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 \"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 different countries with singers above age 20?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.age > 20\\nRETURN DISTINCT singer.country"}]} {"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 10 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 > 10\\nRETURN n.label AS label, n.cluster AS cluster\\nORDER BY cluster 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 have a beneficiary bank from 'United States' and an amount less than 500000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country {name: 'United States'})\\nWHERE f.amount < 500000\\nRETURN count(f) AS NumberOfFilings"}]} {"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 in the dataset?"}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nRETURN DISTINCT i.countries AS Countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the ids of all employees who have destroyed a document."}, {"role": "assistant", "content": "MATCH (n:DocumentsToBeDestroyed)\\nRETURN DISTINCT n.Destroyed_by_Employee_ID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Topic where cluster is 9, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'9'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What are the campuses that opened in 1958?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year = 1958\\nRETURN c.Campus"}]} {"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 ee24bab93b9531431f442226dd453745!"}, {"role": "assistant", "content": "MATCH (n:Author {author_id:'ee24bab93b9531431f442226dd453745'})\\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": "What is the average number of followers for users who have been mentioned in the same tweets as users followed by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: 'Neo4j'})\\nMATCH (neo4j)-[:FOLLOWS]->(followedUser:User)\\nMATCH (followedUser)<-[:MENTIONS]-(tweet:Tweet)\\nMATCH (tweet)-[:MENTIONS]->(otherUser:User)\\nWHERE otherUser <> neo4j\\nWITH DISTINCT otherUser\\nRETURN avg(otherUser.followers) AS average_followers"}]} {"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 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 \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 movies with a poster path ending in '.jpg'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path IS NOT NULL AND m.poster_path ENDS WITH '.jpg'\\nRETURN m.title, m.poster_path\\nORDER BY m.popularity 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 number of votes for movies released in the same year \"Speed Racer\" was released?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Speed Racer'})\\nWITH m.released AS releaseYear\\nMATCH (m:Movie)\\nWHERE m.released = releaseYear\\nRETURN avg(m.votes) AS averageVotes"}]} {"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 pair of directors has the maximal number of actors who acted in at least one movie directed by each director?\""}, {"role": "assistant", "content": "MATCH (d1:Person)-[:DIRECTED]->(m1:Movie)<-[:ACTED_IN]-(a:Person)-[:ACTED_IN]->(m2:Movie)<-[:DIRECTED]-(d2:Person)\\nWHERE id(d1) < id(d2)\\nWITH d1, d2, COUNT(DISTINCT a) AS common_actors\\nORDER BY common_actors DESC\\nLIMIT 1\\nRETURN d1.name AS Director1, d2.name AS Director2, common_actors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where comments is LaTeX2e, 36 pages ; Some misprints are corrected?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Categories for which specifications is cs.CC!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 located in \"Sweden\" and follow \"Neo4j\"?"}, {"role": "assistant", "content": "MATCH (n:User {name: 'Neo4j'})-[:FOLLOWS]->(m:User {location: 'Sweden'})\\nRETURN m.screen_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 does the application 'crm' listen to?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'crm'})-[:LISTENS]->(port:Port)\\nRETURN port.port AS Port"}]} {"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 names of the singers and number of concerts for each person?"}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)\\nWITH count(T2.Singer_ID) AS count, T2.Name AS Name\\nRETURN Name,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many farms are there?"}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which papers have the substring \"Database\" in their titles? Show the titles of the papers."}, {"role": "assistant", "content": "MATCH (p:Paper)\\nWHERE p.title CONTAINS \"Database\"\\nRETURN p.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the doi_id of the DOI and the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nMATCH (m:DOI)\\nRETURN n.doi_id, m.doi_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the number of students in one classroom."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN n.Classroom, COUNT(*)"}]} {"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 pattern is found on the 'Spice Girl 3 p Hipster'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Spice Girl 3 p Hipster'})-[:VARIANT_OF]->(p:Product)\\nRETURN p.productTypeName"}]} {"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 1-31, connected to Article that has title equal to A New Cohomology Theory for Orbifold?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '1-31'}]->(m:Journal)\\nWHERE n.title = 'A New Cohomology Theory for Orbifold'\\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": "What is the average unit price of products ordered by customers who have placed more than 5 orders?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, count(o) AS orderCount\\nWHERE orderCount > 5\\nMATCH (c)-[:PURCHASED]->(:Order)-[:ORDERS]->(p:Product)\\nRETURN avg(toFloat(p.unitPrice)) AS averageUnitPrice"}]} {"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 (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)<-[:REPLY_TO]-(reply:Tweet)\\nRETURN reply\\nORDER BY reply.created_at ASC\\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 people born before 1950 who have written a movie with a tagline mentioning 'journey'."}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)\\nWHERE p.born < 1950 AND m.tagline CONTAINS 'journey'\\nRETURN p.name\\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 are at the end of a path starting from Article, with abstract equal to In this article we study the interface generated by the collision between two\ncristals growing layer by layer on a one-dimensional substrate through random\ndecomposition of particles. We relate this interface with the notion of\nbeta-path in an equivalent directed polymer model and, by using asymptotics\nresults from Baik and Rains (2000) and some hydrodynamic tools introduced by\nCator and Groeenenboon (2005), we derive a law of large numbers for such a path\nand obtain some bounds for its fluctuations.\n, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' In this article we study the interface generated by the collision between two cristals growing layer by layer on a one-dimensional substrate through random decomposition of particles. We relate this interface with the notion of beta-path in an equivalent directed polymer model and, by using asymptotics results from Baik and Rains (2000) and some hydrodynamic tools introduced by Cator and Groeenenboon (2005), we derive a law of large numbers for such a path and obtain some bounds for its fluctuations. '})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"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 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) -[ha:HAS_KEY]->(m)\\nWHERE n.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. '\\nRETURN m.key_id"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of departments that are either in division AS or in division EN and in Building NEB."}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.Division = \"AS\" OR (d.Division = \"EN\" AND d.Building = \"NEB\")\\nRETURN DISTINCT d.DName"}]} {"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 questions asked by users with a reputation greater than the average reputation of all users?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH avg(u.reputation) AS averageReputation\\nMATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > averageReputation\\nRETURN count(DISTINCT q) AS questionCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 (p:ProductionCompany {name: 'Pixar Animation Studios'})<-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.budget > 100000000\\nRETURN m.title AS MovieTitle, m.budget AS Budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"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 The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra!"}, {"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'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"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}"}, {"role": "user", "content": "Fetch eight samples of the title of the Article and the last_name for Author!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Author)\\nRETURN n.title, m.last_name\\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": "Which users interact most frequently with 'neo4j' and list the top 5?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:INTERACTS_WITH]->(user:User)\\nRETURN user.screen_name, COUNT(*) AS interaction_count\\nORDER BY interaction_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the nominees who have been nominated more than two times?"}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWITH m.Nominee AS Nominee, count(*) AS cnt\\nWHERE cnt > 2\\nRETURN Nominee"}]} {"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": "Calculate the average name for Journal that are linked to Article via PUBLISHED_IN and have comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"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 2021-02-09!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2021-02-09'})-[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": "Which users have written reviews for businesses in the same category as 'Imagine Nation Brewing' and have an average rating higher than 3?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Imagine Nation Brewing'})-[:IN_CATEGORY]->(c:Category)\\nMATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b2:Business)\\nWHERE b2 IN [(b3:Business)-[:IN_CATEGORY]->(c) | b3]\\nWITH u, avg(r.stars) AS averageRating\\nWHERE averageRating > 3\\nRETURN 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 is the maximum 'weight' of any 'INTERACTS1' relationship connected to a character with a 'community' value of 579?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS1]->()\\nWHERE c.community = 579\\nRETURN max(r.weight) AS maxWeight"}]} {"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 largest services by RAM usage in Data Center DC1."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(:Rack)-[:HOLDS]->(m:Machine)-[:RUNS]->(s:Service)\\nMATCH (m)-[:TYPE]->(t:Type)\\nRETURN s.name AS serviceName, t.ram AS ramUsage\\nORDER BY t.ram DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the minimum, maximum, and average market value for every company?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN min(c.Market_Value), max(c.Market_Value), avg(c.Market_Value)"}]} {"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 We study, from a constructive computational point of view, the techniques\nused to solve the conjugacy problem in the \"generic\" lattice-ordered group\nAut(R) of order automorphisms of the real line. We use these techniques in\norder to show that for each choice of parameters f,g in Aut(R), the equation\nxfx=g is effectively solvable in Aut(R).\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' We study, from a constructive computational point of view, the techniques used to solve the conjugacy problem in the \"generic\" lattice-ordered group Aut(R) of order automorphisms of the real line. We use these techniques in order to show that for each choice of parameters f,g in Aut(R), the equation xfx=g is effectively solvable in Aut(R). '}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\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": "Name 3 directors who have directed movies with the least number of votes."}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)\\nWITH d, min(m.votes) AS minVotes\\nORDER BY minVotes\\nLIMIT 3\\nRETURN d.name AS director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which industry has the most companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWITH c.Industry AS industry, COUNT(c) AS count\\nORDER BY count DESC\\nRETURN industry\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?"}, {"role": "assistant", "content": "MATCH (c:Company)-[:OWNS]->(g:GasStation)\\nRETURN g.Location, g.Representative_Name\\nORDER BY c.Assets_billion 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 followers that play the game 'Dota 2'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Dota 2'})\\nRETURN s.name AS stream_name, s.followers AS followers\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is f2f5ea4787de1e16c51c306e07bb740c and Article, for which article_id is 1006?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'}), (b:Article{article_id:'1006'})\\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 first 3 businesses with a state property of 'MT'."}, {"role": "assistant", "content": "MATCH (b:Business {state: 'MT'})\\nRETURN b\\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 plot mentioning 'family'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'family'\\nRETURN m\\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 actors born before 1960."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born < 1960\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Topic for which cluster is 11!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'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 actors in terms of the diversity of roles played?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWITH p, size(apoc.coll.toSet(collect(r.roles))) AS roleDiversity\\nRETURN p.name AS actor, roleDiversity\\nORDER BY roleDiversity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Categories with specifications equal to q-fin.RM!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*3]->(n)\\nWHERE a.specifications = 'q-fin.RM'\\nRETURN properties(n) AS props"}]} {"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 cs.CC, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'})-[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 },\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Keyword and Categories?"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[r]->(n), (d:Categories)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"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": "Fetch eight samples of the last_name of the Author and the cluster for Topic!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Topic)\\nRETURN n.last_name, m.cluster\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the roles with three or more employees? Give me the role codes."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWITH e.Role_Code AS role_code, COUNT(*) AS count\\nWHERE count >= 3\\nRETURN role_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": "Who are the top 3 chatters in the stream named 'summit1g'?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: 'summit1g'})<-[:CHATTER]-(u:User)\\nRETURN u.name, count(*) AS messages\\nORDER BY messages 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 highest-rated movies by users, based on the average user rating?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-(u:User)\\nWITH m, avg(r.rating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 5\\nRETURN m.title AS movie, avgRating"}]} {"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 highest `book1PageRank` that interact with \"Cersei-Lannister\" in book 1."}, {"role": "assistant", "content": "MATCH (cersei:Character {name: \"Cersei-Lannister\"})-[:INTERACTS1]->(other:Character)\\nRETURN other.name, other.book1PageRank\\nORDER BY other.book1PageRank 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": "What are the top 5 entities linked to the most filings where the beneficiary bank country is 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\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 \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 23 pages, 1 figure and Categories, with category_id equal eea477d68b70c3a05be12567240033ef, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'23 pages, 1 figure'})-[*]-(e:Categories{category_id:'eea477d68b70c3a05be12567240033ef'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author for which last_name is Mason, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.last_name = 'Mason'\\nRETURN properties(n) AS props, r"}]} {"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: 2007 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '2007'}) -[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 \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597 and share a common property with Keyword, for which name equals 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:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->(n), (d:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the distinct publishers of publications with price higher than 5000000?"}, {"role": "assistant", "content": "MATCH (p:Publication)\\nWHERE p.Price > 5000000\\nRETURN DISTINCT p.Publisher"}]} {"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 unit price greater than $75 and are in the 'Confections' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Confections'})\\nWHERE p.unitPrice > 75\\nRETURN p.productName, p.unitPrice"}]} {"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 average latitude (`beneficiary_lat`) for filings where the `originator_bank_country` is \"Singapore\" and the `beneficiary_bank_country` is \"United Kingdom\"."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = \"Singapore\" AND f.beneficiary_bank_country = \"United Kingdom\"\\nRETURN avg(toFloat(f.beneficiary_lat)) AS average_latitude"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 5 genres by the number of movies associated."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(m) as movie_count\\nORDER BY movie_count DESC\\nLIMIT 5\\nRETURN g.name as genre, movie_count"}]} {"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 Math. Nachr, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{name:'Math. Nachr'})-[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 \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the title and issues of the books?"}, {"role": "assistant", "content": "MATCH (b:Book)\\nRETURN b.Title, b.Issues"}]} {"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 1048 or article_id is less than 1008!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1048 OR n.article_id < 1008\\nRETURN n\\nLIMIT 8"}]} {"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 Log mirror symmetry and local mirror symmetry, through Journal via PUBLISHED_IN with meta 220?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Log mirror symmetry and local mirror symmetry'})-[:PUBLISHED_IN {meta: '220'}]->(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": "What is the average star rating of businesses reviewed by users with names starting with the letter \"W\"?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.name STARTS WITH 'W'\\nMATCH (u)-[:WROTE]->(r:Review)\\nMATCH (r)-[:REVIEWS]->(b:Business)\\nWITH avg(r.stars) AS average_rating\\nRETURN average_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": "List all products that have a unit price greater than the average unit price of products supplied by supplier '1'."}, {"role": "assistant", "content": "MATCH (s:Supplier {supplierID: '1'})-[:SUPPLIES]->(p:Product)\\nWITH avg(p.unitPrice) AS averageUnitPrice\\nMATCH (p:Product)\\nWHERE p.unitPrice > averageUnitPrice\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Which university is in Los Angeles county and opened after 1950?"}, {"role": "assistant", "content": "MATCH (n:Campus)\\nWHERE n.County = \"Los Angeles\" AND n.Year > 1950\\nRETURN n.Campus"}]} {"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 by number of movies they've acted in that have been released on Christmas Day."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released ENDS WITH '-12-25'\\nRETURN a.name, count(m) AS movies_count\\nORDER BY movies_count 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 all businesses that have received reviews with both 4 and 5 stars."}, {"role": "assistant", "content": "MATCH (b:Business)\\nMATCH (b)<-[:REVIEWS]-(review:Review)\\nWHERE review.stars IN [4, 5]\\nWITH b, count(DISTINCT review.stars) AS distinct_star_counts\\nWHERE distinct_star_counts = 2\\nRETURN b.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 is the product type of Skinny R.W Chic?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Skinny R.W Chic'\\nRETURN p.productTypeName"}]} {"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=Dunajski!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Dunajski'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"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 of the product with articleId 663010006?"}, {"role": "assistant", "content": "MATCH (a:Article {articleId: 663010006})\\nRETURN a.colourGroupName"}]} {"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 that benefit from filings where the originator bank is 'The Bank of New York Mellon Corp.'"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank = 'The Bank of New York Mellon Corp.'\\nRETURN e\\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 tweets that mention 'Neo4j' and are tagged with 'education'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(:Hashtag {name: 'education'})\\nWHERE t.text CONTAINS 'Neo4j'\\nRETURN t"}]} {"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 Hyper-K{\\\"a}hler Hierarchies and their twistor theory and PUBLISHED_IN has pages on 641-672!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '641-672'}]->(m)\\nWHERE n.title='Hyper-K{\\\"a}hler Hierarchies and their twistor theory'\\nRETURN m.name"}]} {"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 fd6fcf9374c7e5fd0377800da5e8f846!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS 'fd6fcf9374c7e5fd0377800da5e8f846'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS 'fd6fcf9374c7e5fd0377800da5e8f846'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Article that are missing the comments!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments IS NULL\\nRETURN n\\nLIMIT 8"}]} {"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 An !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH 'An '\\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 total revenue generated by orders shipped via 'Speedy Express'?"}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product)\\nWHERE o.shipVia = '1'\\nWITH o, rel, p, toFloat(rel.unitPrice) * rel.quantity AS revenue\\nRETURN sum(revenue) AS totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where article_id is 1010 and Topic, with description equal Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics., including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1010'})-[*]-(e:Topic{description:'Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.'}))\\nRETURN nodes(p)"}]} {"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 = 527-551."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '527-551'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.article_id AS article_id, numberOfDirectConnections"}]} {"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 (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice 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 streams that are created before 2019 and are chatted in by users who are also VIPs of other streams and are moderators of those streams."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime('2019-01-01T00:00:00.000000Z')\\nMATCH (s)<-[:CHATTER]-(u:User)-[:VIP]->(s2:Stream)<-[:MODERATOR]-(u)\\nRETURN DISTINCT s"}]} {"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 2009-10-31 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2009-10-31'})-[r]->(n)\\nRETURN properties(n), 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 streams with the highest number of followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"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 4969a8e0646cdb8842726781e7637625!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'4969a8e0646cdb8842726781e7637625'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Report where report_no or report_no contains Swansea preprint 99-14!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no CONTAINS 'Swansea preprint 99-14'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_no CONTAINS 'Swansea preprint 99-14'\\nRETURN m AS node"}]} {"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.1007/PL00005532, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1007/PL00005532'})-[*]->(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": "How many interfaces are connected to 'DC1-R-2'?"}, {"role": "assistant", "content": "MATCH (router:Router {name: 'DC1-R-2'})-[:ROUTES]->(interface:Interface)\\nRETURN count(interface) AS numberOfInterfaces"}]} {"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 that depend on the process named '8966'?"}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})-[:DEPENDS_ON]->(s:Service)\\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": "Find all actors who have starred in at least 3 movies with an average vote higher than 7.5."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWHERE m.average_vote > 7.5\\nWITH p, count(m) AS movieCount\\nWHERE movieCount >= 3\\nRETURN p.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 '227', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta <> '227'\\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 \"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 is located in a country with a name starting with \"S\" and the beneficiary bank is located in a country with a name starting with \"U\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country STARTS WITH 'S' AND f.beneficiary_bank_country STARTS WITH 'U'\\nRETURN sum(f.amount) AS total_amount"}]} {"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 Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17;\n MPI-PhT/99-45, along with the type of their relationship with Report!"}, {"role": "assistant", "content": "MATCH (d:Report)-[r]->(n)\\nWHERE d.report_no CONTAINS 'Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17; MPI-PhT/99-45'\\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": "What is the average unit price of products in orders shipped to the same city as the supplier's city?"}, {"role": "assistant", "content": "MATCH (o:Order)-[orders:ORDERS]->(p:Product)<-[:SUPPLIES]-(s:Supplier)\\nWHERE o.shipCity = s.city\\nWITH avg(toFloat(orders.unitPrice)) AS averageUnitPrice\\nRETURN averageUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 were released in the year that \"Jumanji\" was released?"}, {"role": "assistant", "content": "MATCH (j:Movie {title: 'Jumanji'})\\nWITH j.release_date.year AS releaseYear\\nMATCH (m:Movie)\\nWHERE m.release_date.year = releaseYear\\nRETURN count(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many editors are there?"}, {"role": "assistant", "content": "MATCH (e:Editor)\\nRETURN COUNT(e)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Compute the average profits companies make."}, {"role": "assistant", "content": "MATCH (n:Company)\\nRETURN avg(n.Profits_billion) as averageProfitInBillions"}]} {"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": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where title is Rational points on compactifications of semi-simple algebraic groups!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.title='Rational points on compactifications of semi-simple algebraic groups'\\nRETURN m.key_id"}]} {"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": "Fetch five Article that are not linked through HAS_DOI relationships!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE NOT EXISTS ((p)-[:HAS_DOI]->())\\nRETURN p\\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 shortest runtime?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.runtime\\nORDER BY m.runtime ASC\\nLIMIT 5"}]} {"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": "Look for the category_id of the Categories that is not related to the Keyword with the key_id 1af2a68bafbcdcb0f3329c5793163154!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Keyword {key_id: '1af2a68bafbcdcb0f3329c5793163154'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names for the 3 branches that have the most memberships?"}, {"role": "assistant", "content": "MATCH (b:Branch)\\nRETURN b.Name\\nORDER BY b.Membership_amount 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 characters who have interacted with 'Benerro' in any book and have a 'degree' less than 5."}, {"role": "assistant", "content": "MATCH (b:Character {name: 'Benerro'})\\nMATCH (b)--(c:Character)\\nWHERE c.degree < 5\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Count the total number of roles listed."}, {"role": "assistant", "content": "MATCH (r:Role)\\nRETURN count(r)"}]} {"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 \"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 closed date listed and what are those dates?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.closed_date IS NOT NULL\\nRETURN e.name AS entity_name, e.closed_date AS closed_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": "Which people have written and directed the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)<-[:DIRECTED]-(p)\\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": "What are the first 3 genres associated with movies that have a popularity greater than 20?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.popularity > 20\\nRETURN g.name AS genre\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show names of technicians and the number of machines they are assigned to repair."}, {"role": "assistant", "content": "MATCH (T1:RepairAssignment)-[:ASSIGNED_TO]->(T2:Technician)\\nRETURN T2.Name, 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 \"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 Notes for a Quantum Index Theorem and are PUBLISHED_IN linked to Journal, where year is 2001?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Notes for a Quantum Index Theorem'})-[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 \"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 3 streams that were created before 2010."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime('2010-01-01T00:00:00Z')\\nRETURN s.name, s.createdAt, s.url\\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 state has the most businesses in the database?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWITH b.state AS state, count(*) AS businessCount\\nORDER BY businessCount DESC\\nLIMIT 1\\nRETURN state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Return the cell phone number and email address for all students."}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.cell_mobile_number, s.email_address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "find the names of people who are taller than 200 or lower than 190."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.Height > 200 OR p.Height < 190\\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": "Which state has the highest average review rating?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWITH b.state AS state, avg(r.stars) AS averageRating\\nORDER BY averageRating DESC\\nRETURN state, averageRating\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What categories have two or more corresponding books that were made after 1989?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nWHERE b.Year > 1989\\nWITH b.Category AS category, count(*) as cnt\\nWHERE cnt >= 2\\nRETURN category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 found in movies with a poster path featuring '/9'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.poster_path CONTAINS '/9'\\nRETURN l.name AS language, COUNT(m) AS movie_count\\nORDER BY movie_count 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": "Who are the top 5 users mentioned in the most tweets?"}, {"role": "assistant", "content": "MATCH (u:User)<-[:MENTIONS]-(t:Tweet)\\nRETURN u.name AS user, count(t) AS mentions\\nORDER BY mentions 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": "What is the 'size' of the User with the lowest 'ogWeight' on their outgoing INTERACTED relationships and a 'color' that starts with '#3'?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->()\\nWHERE u.color STARTS WITH '#3'\\nWITH u, min(r.ogWeight) AS minOgWeight\\nMATCH (u)-[r:INTERACTED]->()\\nWHERE r.ogWeight = minOgWeight\\nRETURN u.size"}]} {"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 3 users who asked questions on '2020-06-05'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE date(q.createdAt) = date('2020-06-05')\\nRETURN u.display_name, u.id, u.link\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Return all detention summaries."}, {"role": "assistant", "content": "MATCH (d:Detention)\\nRETURN d.detention_summary"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which affiliation is unspecified, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{affiliation:'unspecified'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"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": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?"}, {"role": "assistant", "content": "MATCH (battle:battle)\\nWHERE battle.bulgarian_commander = 'Kaloyan' AND battle.latin_commander = 'Baldwin I'\\nRETURN battle.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Topic for which cluster is 11!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to DOI where doi_id is ee4af8f04acefe1036a78a4436691f55, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 Math. Nachr and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Nachr'})-[r]->(n)\\nRETURN properties(n), 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 all the movies with the summary \"A solid romp\"."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE r.summary = \"A solid romp\"\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of abstract and title from Article where abstract does not start with !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.abstract STARTS WITH ' '\\nRETURN DISTINCT n.abstract AS abstract, n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the role with the smallest number of employees? Find the role codes."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWITH e.Role_Code as role, count(e) as count\\nORDER BY count\\nLIMIT 1\\nRETURN role"}]} {"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 J.Diff.Eq!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'J.Diff.Eq'\\nRETURN n"}]} {"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": "Retrieve the name for DOI that is linked through a HAS_DOI relationship with the 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!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.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 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": "What is the name of the movie with the lowest IMDb rating that was directed by a director born in the USA?"}, {"role": "assistant", "content": "MATCH (d:Director {bornIn: 'USA'})-[:DIRECTED]->(m:Movie)\\nWITH m\\nORDER BY m.imdbRating ASC\\nLIMIT 1\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_id is 45009bf7f2e3f4f275de6d92deab7b27 and Topic, for which label is Mathematics_6?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'}), (b:Topic{label:'Mathematics_6'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\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 article_id is 1013!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.article_id='1013'\\nRETURN m.affiliation"}]} {"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 company number associated with Mossack Fonseca?"}, {"role": "assistant", "content": "MATCH (e:Entity {service_provider: \"Mossack Fonseca\"})\\nWHERE e.company_number IS NOT NULL\\nRETURN e.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": "Display the top 5 users with the highest ogWeight in their interactions."}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->(:User)\\nRETURN u.label AS UserLabel, sum(r.ogWeight) AS TotalOgWeight\\nORDER BY TotalOgWeight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the category_id from Categories where either specifications is math.AT or category_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications = 'math.AT' OR n.category_id IS NOT NULL\\nRETURN DISTINCT n.category_id AS 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 5 adult films with the highest average votes."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nRETURN a.title, a.average_vote\\nORDER BY a.average_vote 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": "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)\\nRETURN p.name, count(m) AS movies_count\\nORDER BY movies_count 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 names of 3 businesses located at '716 N San Mateo Dr'."}, {"role": "assistant", "content": "MATCH (b:Business {address: '716 N San Mateo Dr'})\\nRETURN b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the names of buildings in descending order of building height."}, {"role": "assistant", "content": "MATCH (b:Building)\\nRETURN b.name\\nORDER BY b.Height DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the document ids for any documents with the status code done and the type code paper."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_status_code = \"done\" AND d.document_type_code = \"Paper\"\\nRETURN d.document_id"}]} {"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 Ca!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label =~'Ca.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article for which comments is Latex, 9 pages, no figures, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.comments = 'Latex, 9 pages, no figures'\\nRETURN properties(n) AS props, 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": "Show the entities that have been struck off but have a different inactivation date."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL AND e.inactivation_date IS NOT NULL AND e.struck_off_date <> e.inactivation_date\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses are in Los Angeles county?"}, {"role": "assistant", "content": "MATCH (campus:Campus)\\nWHERE campus.County = \"Los Angeles\"\\nRETURN campus.Campus"}]} {"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.1007/s00365-002-0501-6, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1007/s00365-002-0501-6'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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 top 5 movies released in the 2000s."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2000 AND m.year < 2010\\nRETURN m.title, m.year\\nORDER BY m.imdbRating 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 games does the stream '9linda' play?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: '9linda'})-[:PLAYS]->(g:Game)\\nRETURN g.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 (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, p.productID, s.companyName, s.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": "Identify the top 5 tweets tagged with the hashtag 'education'."}, {"role": "assistant", "content": "MATCH (h:Hashtag {name: 'education'})<-[:TAGS]-(t:Tweet)\\nRETURN t\\nORDER BY t.favorites 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 actors who have a tmdbId and an imdbId listed on their profile."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.tmdbId IS NOT NULL AND a.imdbId IS NOT NULL\\nRETURN a.name, a.tmdbId, a.imdbId\\nLIMIT 5"}]} {"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.1006/jnth.2000.2616!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1006/jnth.2000.2616'\\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 the movies that have been released in the same year that a user rated a movie."}, {"role": "assistant", "content": "MATCH (u:User {userId: \"1\"})-[:RATED]->(m:Movie)\\nWITH collect(DISTINCT m.year) AS user_rated_movie_years\\nMATCH (m2:Movie)\\nWHERE m2.year IN user_rated_movie_years\\nRETURN m2.title, m2.year"}]} {"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 former names of entities that have 'Defaulted' as their status?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.status = 'Defaulted' AND e.former_name IS NOT NULL\\nRETURN e.name AS entity_name, e.former_name AS former_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Who does David follow?"}, {"role": "assistant", "content": "MATCH (david:User {name: \"David\"})-[:FOLLOWS]->(user:User)\\nRETURN user.name AS name"}]} {"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 teams have the most diverse linguistic representation across their streams, and what are the common games played on these streams?\""}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH t, COUNT(DISTINCT l) AS languageDiversity\\nORDER BY languageDiversity DESC\\nWITH COLLECT(t)[0..3] AS topTeams\\nUNWIND topTeams AS topTeam\\nMATCH (topTeam)<-[:HAS_TEAM]-(s:Stream)-[:PLAYS]->(g:Game)\\nRETURN topTeam.name AS TeamName, COLLECT(DISTINCT g.name) AS CommonGames"}]} {"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 machines located in rack 9 of data center 'DC1'."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(rack:Rack {rack: 9})-[:HOLDS]->(machine:Machine)\\nRETURN machine.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": "List the entities that have undergone liquidation as per their notes."}, {"role": "assistant", "content": "MATCH (e:Other)\\nWHERE e.note CONTAINS 'Liquidation'\\nRETURN e.name AS entity_name, e.note AS liquidation_note"}]} {"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 by 'neo4j' with the most replies?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nOPTIONAL MATCH (t)<-[:REPLY_TO]-(r:Tweet)\\nWITH t, count(r) AS reply_count\\nORDER BY reply_count DESC\\nLIMIT 5\\nRETURN t.text AS tweet_text, reply_count"}]} {"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": "Retrieve the name for Keyword that is linked through a HAS_KEY relationship with the Article where title is Limit theorems for random point measures generated by cooperative\n sequential adsorption!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.title='Limit theorems for random point measures generated by cooperative sequential adsorption'\\nRETURN m.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 is the average amount of filings where the originator entity and beneficiary entity are located in different countries?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)-[:COUNTRY]->(originatorCountry), (f)-[:BENEFITS]->(b:Entity)-[:COUNTRY]->(beneficiaryCountry)\\nWHERE originatorCountry.code <> beneficiaryCountry.code\\nWITH f\\nRETURN avg(f.amount) AS avgAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the total points for all gymnasts, ordered by total points descending?"}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN g.Total_Points AS Total_Points\\nORDER BY Total_Points DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the average horizontal bar points across all gymnasts."}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN avg(g.Horizontal_Bar_Points)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the first name and last name of all the teachers?"}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nRETURN DISTINCT t.FirstName, t.LastName"}]} {"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 tagged with 'aws-lambda' were created after 2019 and have downVotes?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWHERE q.createdAt > datetime('2019-01-01T00:00:00Z') AND q.downVotes > 0\\nRETURN q.title AS title, q.link AS link, q.createdAt AS createdAt, q.downVotes AS downVotes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 worked in movies with a fantasy setting."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Fantasy'})\\nMATCH (p:Person)-[:CAST_FOR]->(m)\\nRETURN DISTINCT 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": "List the top 3 characters with the highest book45PageRank."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book45PageRank\\nORDER BY c.book45PageRank DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the official name and status of the city with the largest population."}, {"role": "assistant", "content": "MATCH (c:City)\\nRETURN c.Official_Name, c.Status\\nORDER BY c.Population 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": "Which 3 movies have the highest revenue to budget ratio?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget IS NOT NULL AND m.revenue IS NOT NULL\\nRETURN m.title AS movie, toFloat(m.revenue) / m.budget AS revenueToBudgetRatio\\nORDER BY revenueToBudgetRatio DESC\\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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "Find the last name of female (sex is F) students in the descending order of age."}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Sex = \"F\"\\nRETURN s.LName\\nORDER BY s.Age 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 total RAM available on all machines that are running the 'webapp' application?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webapp'})-[:RUNS]->(machine:Machine)-[:TYPE]->(type:Type)\\nRETURN sum(type.ram)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average fee on a CSU campus in 2005?"}, {"role": "assistant", "content": "MATCH (n:CsuFee)\\nWHERE n.Year = 2005\\nRETURN avg(n.CampusFee)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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.title, a.tagline\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "How many train stations are there?"}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which building has the largest number of company offices? Give me the building name."}, {"role": "assistant", "content": "MATCH (c:Company)-[:LOCATED_IN]->(b:Building)\\nWITH b.name AS name, COUNT(*) AS count\\nRETURN name\\nORDER BY count DESC\\nLIMIT 1"}]} {"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 Failure of Brown representability in derived categories!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Failure of Brown representability in derived categories'\\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 are moderators in streams with over a million followers?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE s.followers > 1000000\\nRETURN u.name AS user, s.name AS stream\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find the most prominent max page size among all the products."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH max(p.max_page_size) AS maxPageSize\\nRETURN maxPageSize"}]} {"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 that have filed the most number of filings with a beneficiary bank in '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 3\\nRETURN e.name AS entity_name, num_filings"}]} {"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 from the UK?"}, {"role": "assistant", "content": "MATCH (s:Supplier {country: 'UK'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName AS productName"}]} {"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 4179 and are PUBLISHED_IN linked to Journal, where meta is 220?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'4179'})-[r:PUBLISHED_IN {meta :'220'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 name and theme for all concerts and the number of singers in each concert."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:concert)\\nWITH T2.concert_name AS concert_name, count(T2.concert_id) AS count, T2.theme AS theme\\nRETURN concert_name,theme,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Report for which report_no is SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint\n No. 73, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_no:'SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint No. 73'})-[*]->(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 \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the cluster for Topic combined with the name for DOI, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.cluster AS Records\\nUNION\\nMATCH (m:DOI)\\nRETURN m.name 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": "What are the names of all switches in rack 5?"}, {"role": "assistant", "content": "MATCH (rack:Rack {rack: 5})-[:HOLDS]->(switch:Switch)\\nRETURN switch.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 'key' of Users with a 'size' between 1.5 and 2.5."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE 1.5 < u.size < 2.5\\nRETURN u.key"}]} {"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 garment group number of the 'Magnolia dress'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Magnolia dress'})-[:VARIANT_OF]->(p:Product)\\nRETURN p.garmentGroupNo"}]} {"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 'book1PageRank' among all characters? Show top 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank 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 are the top 5 questions tagged with 'aws-lambda'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nRETURN q.title, q.link, q.score\\nORDER BY q.score 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 where report_id is 3fa3ec8100d88908b00d139dacdedb6a!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = '3fa3ec8100d88908b00d139dacdedb6a'\\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 are the top 3 beneficiary ISO codes in the filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f.beneficiary_iso AS iso_code, COUNT(f) AS count\\nRETURN iso_code\\nORDER BY count 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": "Display the first 3 tweets from 'neo4j' that contain a hashtag."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN t\\nORDER BY t.created_at ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "How many members have the black membership card?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nWHERE m.Membership_card = 'Black'\\nRETURN count(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 top 5 most frequently ordered products in 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Seafood'})<-[:PART_OF]-(p:Product)<-[:ORDERS]-(o:Order)\\nRETURN p.productName, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"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 Bernhard, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'Bernhard'})-[*]->(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 \"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 title is $A_{\\infty}$-structures on an elliptic curve and PUBLISHED_IN has year on 2004!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2004'}]->(m)\\nWHERE n.title='$A_{\\infty}$-structures on an elliptic curve'\\nRETURN m.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 questions have a text length greater than 500 characters?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE size(q.text) > 500\\nRETURN q.title AS title, q.text AS text, q.link AS link, q.createdAt AS createdAt"}]} {"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 by users with more than 1000 followers."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.followers > 1000\\nMATCH (u)-[:POSTS]->(t:Tweet)\\nMATCH (t)-[:TAGS]->(h:Hashtag)\\nRETURN DISTINCT h.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 1013 or article_id is less than 1015!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1013 OR n.article_id < 1015\\nRETURN n\\nLIMIT 8"}]} {"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 that have a company type specified."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.company_type IS NOT NULL\\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": "What is the average vote count of movies with a genre of \"Animation\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: \"Animation\"})\\nWITH avg(m.vote_count) AS average_vote_count\\nRETURN average_vote_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show the region name with at least two storms."}, {"role": "assistant", "content": "MATCH (r:Region)<-[a:AFFECTS]-(s:Storm)\\nWITH r, COUNT(*) AS count\\nWHERE count >= 2\\nRETURN r.Region_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 budget and were released after 2010?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= '2010'\\nRETURN m.title, m.budget\\nORDER BY m.budget 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 products by number of times they have been ordered."}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(p:Product)\\nRETURN p.productName AS productName, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Which accelerator name contains substring \"Opera\"?"}, {"role": "assistant", "content": "MATCH (w:WebClientAccelerator)\\nWHERE w.name CONTAINS \"Opera\"\\nRETURN w.name"}]} {"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 Summation and transformation formulas for elliptic hypergeometric series and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Summation and transformation formulas for elliptic hypergeometric series'})-[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 \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where author_id or last_name contains d83c43e5b1cf398c4e549843f497694b!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS 'd83c43e5b1cf398c4e549843f497694b'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'd83c43e5b1cf398c4e549843f497694b'\\nRETURN m AS node"}]} {"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 unspecified and share a common property with Article, for which article_id equals 1013?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:Article{article_id:'1013'})\\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 \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Report where report_id is 42a4c65c8ac88e75fed4b8e25a71dc9a and Author, for which first_name equals Randall?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'42a4c65c8ac88e75fed4b8e25a71dc9a'})-[*]->(d:Author{first_name:'Randall'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the employee ids and the number of documents destroyed by each employee."}, {"role": "assistant", "content": "MATCH (d:DocumentsToBeDestroyed)\\nRETURN d.Destroyed_by_Employee_ID, 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 first 5 streams that have been in the same language and game for over 5 years."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game), (s)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.createdAt <= datetime('2018-01-01T00:00:00Z')\\nRETURN s.id AS StreamID, s.name AS StreamName, g.name AS Game, l.name AS Language\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"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 = 225."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '225'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.title AS title, numberOfDirectConnections"}]} {"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 Population Dynamics_0!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Topic {label: 'Population Dynamics_0'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.key_id"}]} {"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": "Look for the name of the Keyword 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:Keyword), (: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.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the cluster of the Topic that is not related to the Topic with the cluster 11!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Topic {cluster: '11'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.cluster"}]} {"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 revenue generated by orders placed by customers with a company name that starts with the letter 'A'?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[rel:ORDERS]->(p:Product)\\nWHERE c.companyName STARTS WITH 'A'\\nWITH o, sum(toFloat(rel.unitPrice) * rel.quantity) AS revenuePerOrder\\nWITH sum(revenuePerOrder) AS totalRevenue\\nRETURN totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"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 0e45607b74a52b79f39c242abf265272 and traversing through Author with first_name Jean-Francois!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[*]->(d:Author{first_name:'Jean-Francois'})-[*]->(n)\\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 \"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 2000 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 = '2000'\\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 \"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 types of machines are in zone 3 and have more than 16 GB RAM?"}, {"role": "assistant", "content": "MATCH (r:Rack)-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nWHERE r.zone = 3 AND t.ram > 16\\nRETURN DISTINCT t.type 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": "Which entities have been described in the jurisdiction description as 'Samoa' and have a service provider of 'Mossack Fonseca'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = 'Samoa' AND e.service_provider = 'Mossack Fonseca'\\nRETURN e.name AS entity_name, e.jurisdiction_description AS jurisdiction_description, e.service_provider AS service_provider"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Location = \"Northridge\" AND c.County = \"Los Angeles\"\\nRETURN c.Campus\\nUNION\\nMATCH (c:Campus)\\nWHERE c.Location = \"San Francisco\" AND c.County = \"San Francisco\"\\nRETURN c.Campus"}]} {"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": "\"show actors in Titanic\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie {title: \"Titanic\"})\\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": "List 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 \"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 discontinued?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product {discontinued: true})\\nWITH s, count(p) AS discontinuedProducts\\nORDER BY discontinuedProducts DESC\\nLIMIT 3\\nRETURN s.companyName, discontinuedProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 extensive cast list as determined by the number of cast credits?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:CAST_FOR]-(p:Person)\\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 \"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 a movie directed by a director born in the same country as them."}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)<-[:DIRECTED]-(director:Director)\\nWHERE actor.bornIn = director.bornIn\\nRETURN actor.name AS ActorName, movie.title AS MovieTitle, director.name AS DirectorName"}]} {"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 10, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'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 \"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 users that 'Neo4j' interacts with based on the number of interactions."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[i:INTERACTS_WITH]->(u:User)\\nRETURN u.screen_name AS user, count(i) AS interactions\\nORDER BY interactions 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 people were born between 1940 and 1960?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born >= 1940 AND p.born <= 1960\\nRETURN p.name, p.born"}]} {"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 highest-grossing movies of 2014?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 2014\\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 \"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 a runtime shorter than 90 minutes and an IMDB rating higher than 8.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 90 AND m.imdbRating > 8.0\\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 all movies that have a budget greater than 100 million USD and were released after 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000 AND m.release_date > date('2000-01-01')\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many companies are headquartered in the US?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Headquarters = \"USA\"\\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": "Find all actors who have starred in movies belonging to the 'Animation' genre."}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Animation'})<-[:IN_GENRE]-(m:Movie)<-[:CAST_FOR]-(a:Person)\\nRETURN DISTINCT a.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 dependencies of the software named 'RHEL'?"}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:DEPENDS_ON]->(dependency)\\nRETURN s.name AS Software, dependency.name AS Dependency"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names of all the authors ordered in alphabetical order."}, {"role": "assistant", "content": "MATCH (a:Author)\\nRETURN a.fname\\nORDER BY a.fname"}]} {"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 been active for over 5 years and have over 100,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime() - duration('P5Y') AND s.followers > 100000\\nRETURN s.name AS stream_name, s.createdAt AS created_at, s.followers AS follower_count\\nORDER BY s.createdAt\\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 starts with d2d!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id STARTS WITH 'd2d'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Find the ids and names of members who are under age 30 or with black membership card."}, {"role": "assistant", "content": "MATCH (m:Member)\\nWHERE m.Membership_card = \"Black\" OR m.Age < 30\\nRETURN m.Name, m.Member_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 first 3 movies where Nancy Meyers was involved as a writer and their release years?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Nancy Meyers\"})-[:WROTE]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.released AS ReleaseYear\\nORDER BY m.released\\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 \"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: 3082 and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '3082'}) -[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 \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry."}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE c.Industry <> \"Banking\"\\nRETURN max(c.Sales_billion), min(c.Sales_billion)"}]} {"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.shipRegion, o.shipVia, o.shippedDate\\nORDER BY o.shippedDate\\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 users have written reviews for businesses located at '200 W Pine St'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '200 W Pine St'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees."}, {"role": "assistant", "content": "MATCH (c:CirculationHistory)\\nRETURN c.document_id, count(distinct c.employee_id) as employee_count\\nORDER BY c.document_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many threads has David started?"}, {"role": "assistant", "content": "MATCH (u:User {name: \"David\"})-[:CREATED]->(p:Post)\\nRETURN COUNT(p) 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": "Which streams have more than 5000000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 5000000\\nRETURN s"}]} {"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: 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 pages 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.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"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 DOI where name is 10.1142/S0219061301000077 and traversing through Keyword with name log-balanced!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1142/S0219061301000077'})-[*]->(d:Keyword{name:'log-balanced'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the ids of all the employees who have destroyed documents?"}, {"role": "assistant", "content": "MATCH (d:DocumentsToBeDestroyed)\\nRETURN DISTINCT d.Destroyed_by_Employee_ID"}]} {"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 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 what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.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 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 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 s.followers < 3000\\nRETURN s\\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": "What is the average star rating of businesses in 'Missoula'?"}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Missoula'})<-[:REVIEWS]-(r:Review)\\nRETURN avg(r.stars) AS average_rating"}]} {"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": "\"provide all interface IP's exposed by the process 'webserver' , also grub the datacenter informations\""}, {"role": "assistant", "content": "MATCH (p:Process {name: 'webserver'})-[:RUNS]->(m:Machine)-[:ROUTES]->(i:Interface)-[:EXPOSES]->(port:Port), (dc:DataCenter)-[:CONTAINS]->(m)\\nRETURN i.ip AS InterfaceIP, dc.name AS DataCenterName, dc.location AS DataCenterLocation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"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 affiliation is unspecified and share a common property with Report, for which report_id equals 6949743cea68a5e6f3f5bd286694d356?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:Report{report_id:'6949743cea68a5e6f3f5bd286694d356'})\\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 \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\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 UpdateDate, for which update_date is 2010-06-18?"}, {"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:UpdateDate{update_date:'2010-06-18'})\\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 is the `address` of the entity with `internal_id` '1000896'?"}, {"role": "assistant", "content": "MATCH (e:Entity {internal_id: '1000896'})\\nRETURN e.address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from UpdateDate with update_date equal to 2014-11-11!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-11-11'})-[*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": "Fetch unique values of comments and title from Article where comments does not start with P!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.comments STARTS WITH 'P'\\nRETURN DISTINCT n.comments AS comments, n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the label of the Topic that is not related to the Topic with the 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.!"}, {"role": "assistant", "content": "MATCH (n:Topic), (: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.'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.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": "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.released >= '2011'\\nRETURN m.title, m.revenue\\nORDER BY m.revenue 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 properties of nodes that are 3 hops away from Report with report_no equal to SPbU-IP-00-03!"}, {"role": "assistant", "content": "MATCH (a:Report)-[*3]->(n)\\nWHERE a.report_no = 'SPbU-IP-00-03'\\nRETURN properties(n) AS props"}]} {"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 contains 904b6!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id CONTAINS '904b6'\\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": "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 AS MovieTitle\\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 the most answered questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.answered = true\\nWITH u, count(q) AS answeredQuestions\\nORDER BY answeredQuestions DESC\\nLIMIT 3\\nRETURN u.display_name, answeredQuestions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show each student's first name and last name."}, {"role": "assistant", "content": "MATCH (List:List)\\nRETURN DISTINCT List.FirstName, List.LastName"}]} {"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 5?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 5\\nRETURN 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": "Name the top 5 movies with the most keywords associated."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWITH m, count(k) AS keyword_count\\nORDER BY keyword_count DESC\\nLIMIT 5\\nRETURN m.title AS MovieTitle, keyword_count"}]} {"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.1142/S0219061301000107, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1142/S0219061301000107'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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 movies directed by persons born after 1960."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born > 1960\\nRETURN m.title AS MovieTitle, p.name AS DirectorName"}]} {"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 contains e7b0a!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id CONTAINS 'e7b0a'\\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 3 movies are part of genres with an ID between 15 and 50?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.id >= 15 AND g.id <= 50\\nRETURN m.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 that have been rated the lowest by users."}, {"role": "assistant", "content": "MATCH (:User)-[r:RATED]->(m:Movie)\\nRETURN m.title AS title, AVG(r.rating) AS avgRating\\nORDER BY avgRating 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": "How many users have asked questions with a score greater than 5?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score > 5\\nWITH DISTINCT u\\nRETURN count(u)"}]} {"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` greater than 100?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 100\\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": "What is the average 'centrality' of characters in the graph?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN avg(c.centrality)"}]} {"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 with a reputation over 100000 have asked questions that have been downvoted?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 100000 AND q.downVotes > 0\\nRETURN u"}]} {"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 that have been directed by actors."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:DIRECTED]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.released AS ReleaseDate\\nORDER BY m.imdbRating DESC\\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": "Which nodes have a common property with Article where article_id is 511569 and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'511569'})-[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 \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 with the most number of movie appearances."}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWITH p, count(*) AS movie_count\\nORDER BY movie_count DESC\\nRETURN p.name, movie_count\\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 3 oldest filings based on the begin date."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nRETURN f\\nORDER BY f.begin\\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 \"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 18 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 = '18'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What is the product with the highest height? Give me the catalog entry name."}, {"role": "assistant", "content": "MATCH (c:CatalogContent)\\nRETURN c.catalog_entry_name\\nORDER BY c.height DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the status shared by cities with population bigger than 1500 and smaller than 500."}, {"role": "assistant", "content": "MATCH (c:City)\\nWHERE c.Population > 1500\\nWITH c\\nMATCH (c1:City)\\nWHERE c1.Population < 500 AND c1.Status = c.Status \\nRETURN c.Status"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show all train names and times in stations in London in descending order by train time."}, {"role": "assistant", "content": "MATCH (s:Station)-[:SERVES]->(t:Train)\\nWHERE s.Location = \"London\"\\nRETURN t.Name, t.Time\\nORDER BY t.Time DESC"}]} {"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)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b), (u:User)-[:WROTE]->(r)\\nWHERE b.city = 'Burlingame'\\nRETURN b.address AS businessAddress, r.text AS reviewText, u.name AS userName"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the phones of departments in Room 268?"}, {"role": "assistant", "content": "MATCH (d:Department {Room: \"268\"})\\nRETURN d.DPhone"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What campuses opened between 1935 and 1939?"}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.Year >= 1935 AND c.Year <= 1939\\nRETURN c.Campus"}]} {"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": "Return the key_id for Keyword combined with the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.key_id AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.author_id 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": "What is the name of the genre associated with the movie \"Jumanji\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Jumanji\"})\\nMATCH (m)-[:IN_GENRE]->(g:Genre)\\nRETURN g.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 most frequently rated by users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-(:User)\\nRETURN m.title AS movie, count(r) AS num_ratings\\nORDER BY num_ratings DESC\\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 is the average rating given by people born after 1980?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE p.born > 1980\\nRETURN avg(r.rating) AS average_rating"}]} {"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 'neo4j' with the most favorites."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nRETURN tweet.text, tweet.favorites\\nORDER BY tweet.favorites DESC\\nLIMIT 5"}]} {"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 2018-11-28!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = date('2018-11-28')\\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 centrality of exactly 0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality = 0\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show names for all regions except for Denmark."}, {"role": "assistant", "content": "MATCH (r:Region)\\nWHERE r.Region_name <> \"Denmark\"\\nRETURN r.Region_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 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 \"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 people born before 1950 acted in a movie with a tagline containing 'limits'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE p.born < 1950 AND m.tagline CONTAINS 'limits'\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments and the number of nodes connected to them via PUBLISHED_IN with meta = 225."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '225'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"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": "For each Article find its title 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.title AS title, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"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 d3!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id =~'d3.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"stadium\": {\n \"properties\": {\n \"stadium_id\": \"STRING\",\n \"location\": \"STRING\",\n \"name\": \"STRING\",\n \"capacity\": \"STRING\",\n \"highest\": \"STRING\",\n \"lowest\": \"STRING\",\n \"average\": \"STRING\"\n }\n },\n \"singer\": {\n \"properties\": {\n \"singer_id\": \"STRING\",\n \"name\": \"STRING\",\n \"country\": \"STRING\",\n \"song_name\": \"STRING\",\n \"song_release_year\": \"STRING\",\n \"age\": \"STRING\",\n \"is_male\": \"STRING\"\n }\n },\n \"concert\": {\n \"properties\": {\n \"concert_id\": \"STRING\",\n \"concert_name\": \"STRING\",\n \"theme\": \"STRING\",\n \"stadium_id\": \"STRING\",\n \"year\": \"STRING\"\n }\n },\n \"singer_in_concert\": {\n \"properties\": {\n \"concert_id\": \"STRING\",\n \"singer_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are all the song names by singers who are older than average?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWITH avg(singer.Age) AS age\\nMATCH (singer:singer)\\nWHERE singer.Age > age \\nRETURN singer.Song_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 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[r]->()\\nRETURN 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": "Is there a path connecting 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 Article, for which title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory?"}, {"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. '}), (b:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})\\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": "Find all movies that have been rated by more than 1000 users."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, count(u) AS userCount\\nWHERE userCount > 1000\\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": "Name the people who have produced movies with less than 100 votes."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.votes < 100\\nRETURN p.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 first 5 questions tagged with 'apollo' and have downVotes."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nWHERE q.downVotes > 0\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[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 played by streams with over 1 million total views."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 1000000\\nRETURN g.name, count(s) AS streams_count\\nORDER BY streams_count 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": "Which intermediaries are connected to more than one entity and list their names."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:intermediary_of]->(e:Entity)\\nWITH i, COUNT(e) AS entityCount\\nWHERE entityCount > 1\\nRETURN i.name AS intermediaryName"}]} {"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 'location' of the user who posted the tweet with the earliest 'created_at' date?"}, {"role": "assistant", "content": "MATCH (earliestTweet:Tweet)\\nRETURN earliestTweet\\nORDER BY earliestTweet.created_at 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": "Which users are amplified by 'Me'?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(user:User)\\nRETURN user"}]} {"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 'Router' nodes in the 'DataCenter'."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(router:Router)\\nRETURN router.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 3 streams that have the most distinct games played."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, COUNT(DISTINCT g) AS distinctGames\\nORDER BY distinctGames DESC\\nLIMIT 3\\nRETURN s.name AS streamName, distinctGames"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 number of spoken languages?"}, {"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 \"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 revenue generated from each customer?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[or:ORDERS]->(p:Product)\\nWITH c.customerID AS customerID, toFloat(or.quantity) * toFloat(or.unitPrice) AS orderRevenue\\nWITH customerID, sum(orderRevenue) AS totalRevenue\\nRETURN customerID, totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of campuses?"}, {"role": "assistant", "content": "MATCH (n:Campus)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of regions with two or more storms?"}, {"role": "assistant", "content": "MATCH (r:Region)<-[:AFFECTS]-(s:Storm)\\nWITH r, count(*) AS c\\nWHERE c >= 2\\nRETURN r.Region_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 sorted by release date in ascending order."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.release_date\\nORDER BY m.release_date\\nLIMIT 3"}]} {"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 Th!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description =~'Th.*'\\nRETURN n"}]} {"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": "Return the update_date for UpdateDate combined with the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.key_id 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": "Identify the top 3 users by the number of people they are following."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.screen_name AS user, u.following AS following\\nORDER BY u.following 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 users who have rated the most movies?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, COUNT(r) AS ratingCount\\nORDER BY ratingCount DESC\\nLIMIT 5\\nRETURN u.id AS userId, ratingCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the article_id of the Article, skip the first 2 records and return 2 records!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.article_id SKIP 2\\nLIMIT 2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 jobs of the first 3 crew members for the movie with the highest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:CREW_FOR]-(p:Person)\\nWITH m, r, p\\nORDER BY m.budget DESC\\nLIMIT 1\\nWITH m, collect({job: r.job, person: p}) AS crew\\nRETURN m.title AS movie, crew[0..2] AS crew_jobs"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many different countries are all the swimmers from?"}, {"role": "assistant", "content": "MATCH (s:Swimmer)\\nRETURN COUNT(DISTINCT s.Nationality)"}]} {"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 ee4af8f04acefe1036a78a4436691f55!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.doi_id = 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN properties(n) AS props"}]} {"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": "Are there any nodes that are connected with Topic where cluster is 7 and share a common property with Article, for which abstract equals 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:Topic{cluster:'7'})-[r]->(n), (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. '})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"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": "Look for the author_id of the Author that is not related to the Journal with the name Constructive Approximation!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Journal {name: 'Constructive Approximation'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.author_id"}]} {"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 share the same jurisdiction as 'SAM' and their names."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction = 'SAM'\\nRETURN e.name AS entity_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 top 3 users who have moderated the most streams."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, COUNT(s) AS moderatedStreams\\nORDER BY moderatedStreams DESC\\nLIMIT 3\\nRETURN u.name AS userName, moderatedStreams"}]} {"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 latitude is greater than 50 degrees."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE toFloat(f.beneficiary_lat) > 50\\nMATCH (f)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT c.name\\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 1184638302ce384c7549eeead253af2d!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS '1184638302ce384c7549eeead253af2d'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS '1184638302ce384c7549eeead253af2d'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Which district has the largest population?"}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Population DESC\\nLIMIT 1"}]} {"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 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 their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.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 properties(b) AS Topic_props, 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 INTERACTS relationship with a weight exactly 334?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE r.weight = 334\\nRETURN c1.name AS Character1, c2.name AS Character2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Return the maximum and minimum number of cows across all farms."}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN max(f.Cows), min(f.Cows)"}]} {"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 tagged with 'aws-lambda'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nRETURN q\\nORDER BY q.createdAt\\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": "Return the name for Journal combined with the last_name for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.last_name 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": "What are the names of 3 businesses with reviews written by 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS BusinessName\\nLIMIT 3"}]} {"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 Swansea preprint 99-14, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Swansea preprint 99-14'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 'size' of the User with the lowest 'x' value and a 'color' that starts with '#4'?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.color STARTS WITH '#4'\\nWITH min(u.x) AS min_x\\nMATCH (u:User {x: min_x})\\nRETURN u.size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to DOI where name is 10.1142/S0219061301000107 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.name = '10.1142/S0219061301000107'\\nRETURN properties(b) AS DOI_props, properties(n) 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": "What are the first 5 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 5\\nRETURN s.name AS streamName, chatterCount"}]} {"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 movies_count\\nORDER BY movies_count DESC\\nRETURN p.name, movies_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": "Which 5 directors were born in the USA and have directed at least 3 movies?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn CONTAINS 'USA'\\nWITH d, count(m) AS numMovies\\nWHERE numMovies >= 3\\nRETURN d.name, numMovies\\nORDER BY numMovies 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 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 AS category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "List the campuses in Los Angeles county."}, {"role": "assistant", "content": "MATCH (c:Campus)\\nWHERE c.County = \"Los Angeles\"\\nRETURN c.Campus"}]} {"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 in the tweets that have been retweeted by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)-[:TAGS]->(hashtag:Hashtag)\\nWITH hashtag, COUNT(*) as usageCount\\nORDER BY usageCount DESC\\nLIMIT 3\\nRETURN hashtag.name AS hashtag, usageCount"}]} {"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 3 most frequently supplied products by 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: \"Exotic Liquids\"})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName, count(p) AS supplyCount\\nORDER BY supplyCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Report where report_no is SISSA: 39/99/FM/GEO and list their properties, including those of Report!"}, {"role": "assistant", "content": "39/99/FM/GEO and list their properties, including those of Report!\nA: MATCH (b:Report)-[r]->(n)\\nWHERE b.report_no = 'SISSA: 39/99/FM/GEO'\\nRETURN properties(b) AS Report_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 the name and theme for all concerts and the number of singers in each concert."}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:concert)\\nWITH T2.concert_Name AS concert_Name, T2.Theme AS Theme, count(T2.concert_ID) AS count\\nRETURN concert_Name,Theme,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": "How many reviews have been written for 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})<-[:REVIEWS]-(r:Review)\\nRETURN count(r) AS NumberOfReviews"}]} {"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 top 5 users who are VIPs in the most streams."}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWITH u, count(s) AS vip_count\\nORDER BY vip_count DESC\\nLIMIT 5\\nRETURN u.name AS user, vip_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 3 businesses in 'Burlingame' with reviews?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b)\\nWHERE b.city = 'Burlingame'\\nRETURN DISTINCT b.name\\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": "How many questions have a 'createdAt' date on or after June 5, 2020, and are tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.createdAt >= datetime('2020-06-05T00:00:00Z') AND t.name = 'graphql'\\nRETURN count(q) AS numberOfQuestions"}]} {"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 of streams that have more than 100,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 100000\\nMATCH (s)-[:MODERATOR]->(u:User)\\nRETURN count(DISTINCT u) AS moderatorCount"}]} {"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": "Look for the category_id of the Categories that is not related to the Keyword with the key_id c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Keyword {key_id: 'c807a6943bac079cc85fda45518ea7f4'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.category_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": "List the business names and address for the top 3 businesses with the most reviews."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)\\nWITH b, count(r) AS reviewsCount\\nORDER BY reviewsCount DESC\\nLIMIT 3\\nRETURN b.name AS BusinessName, b.address AS Address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Report that are missing the report_no!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no IS NULL\\nRETURN n\\nLIMIT 8"}]} {"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 9 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 > 9\\nRETURN n.description AS description, 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": "Which 3 actors have the most roles listed in their ACTED_IN relationships?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie)\\nWITH a, count(r) AS roles\\nORDER BY roles DESC\\nLIMIT 3\\nRETURN a.name AS actorName, roles"}]} {"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 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 are HAS_DOI linked to a DOI?"}, {"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:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"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 by number of roles in the 'ACTED_IN' relationship."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(p:Person)\\nRETURN m.title AS movie, size(r.roles) AS numRoles\\nORDER BY numRoles DESC\\nLIMIT 5"}]} {"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 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, passing through DOI via HAS_DOI?"}, {"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. '})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the hosts of competitions whose theme is not \"Aliens\"?"}, {"role": "assistant", "content": "MATCH (fc:Farm_competition)\\nWHERE fc.Theme <> 'Aliens'\\nRETURN fc.Hosts"}]} {"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 1af2a68bafbcdcb0f3329c5793163154!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.key_id = '1af2a68bafbcdcb0f3329c5793163154'\\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": "What is the average IMDb rating for movies in the genre 'Adventure'?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Adventure'})<-[:IN_GENRE]-(m:Movie)\\nWITH avg(m.imdbRating) AS avgRating\\nRETURN avgRating"}]} {"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": "For each Article find its article_id and the count of Journal linked via PUBLISHED_IN where meta is not '227', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta <> '227'\\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 \"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 votes that does not have the word \"a\" in its title."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE NOT m.title CONTAINS 'a'\\nRETURN m\\nORDER BY m.votes DESC\\nLIMIT 1"}]} {"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.AT, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.AT'})-[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": "Show the reviews for 'Market on Front' along with the review dates and stars."}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Market on Front'})<-[:REVIEWS]-(r:Review)\\nRETURN r.text AS review, r.date AS date, r.stars AS stars"}]} {"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 c95a6da6fb331984f198feec0b0bb1a5, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[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 \"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 $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article {title: '$A_{\\infty}$-structures on an elliptic curve'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"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 213 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 = '213'\\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 \"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 movies by the number of reviews they received."}, {"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 \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between 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 Categories, for which category_id equals eea477d68b70c3a05be12567240033ef?"}, {"role": "assistant", "content": "MATCH p=(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.'})-[*]->(d:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})\\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 5 hashtags in tweets containing the word 'education'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag)\\nWHERE t.text CONTAINS 'education'\\nRETURN h.name AS hashtag, count(*) AS count\\nORDER BY 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": "Which 3 customers have purchased the most products by quantity?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[r:ORDERS]->(p:Product)\\nRETURN c.companyName AS customer, SUM(r.quantity) AS totalQuantity\\nORDER BY totalQuantity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"bio\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Post\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"content\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FRIENDS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Post\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"THREAD_PARENT\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CREATED\",\n \"to\": \"Comment\"\n }\n ],\n \"relationshipProperties\": {\n \"CREATED\": {\n \"timestamp\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "How many posts has Alice made?"}, {"role": "assistant", "content": "MATCH (u:User {name:'Alice'})-[:CREATED]->(p:Post)\\nRETURN count(p) AS count_Post_"}]} {"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 \"rajjix\" as a chatter and play \"Dota 2\"."}, {"role": "assistant", "content": "MATCH (u:User {name: \"rajjix\"})\\nMATCH (u)-[:CHATTER]->(s:Stream)\\nMATCH (s)-[:PLAYS]->(g:Game {name: \"Dota 2\"})\\nRETURN s.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": "Which 3 users have a color property of '#3CB371'?"}, {"role": "assistant", "content": "MATCH (u:User {color: '#3CB371'})\\nRETURN u\\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 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 MovieTitle, genreCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the age of the person with the greatest height."}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p.Age\\nORDER BY p.Height DESC\\nLIMIT 1"}]} {"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 19 pages, AMSLatex, references added, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.comments CONTAINS '19 pages, AMSLatex, references added'\\nRETURN n, 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 \"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 abstract of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where year is 2002!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year = '2002'\\nRETURN n.abstract AS abstract, 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": "Find the top 5 users with the largest area who have interacted with others."}, {"role": "assistant", "content": "MATCH (u:User)-[:INTERACTED]->(:User)\\nWITH u, MAX(u.area) AS maxArea\\nORDER BY maxArea DESC\\nLIMIT 5\\nRETURN u.label AS UserLabel, u.area AS Area"}]} {"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's your daddy\""}, {"role": "assistant", "content": "MATCH (child:Person)-[:FOLLOWS]->(parent:Person)\\nRETURN child.name AS ChildName, parent.name AS ParentName"}]} {"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 businesses along 'W Broadway St' and their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address CONTAINS 'W Broadway St'\\nRETURN b.name, b.address, c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are all the different book publishers?"}, {"role": "assistant", "content": "MATCH (b:BookClub)\\nRETURN DISTINCT b.Publisher"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Categories for which specifications is q-fin.RM!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'q-fin.RM'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of authors."}, {"role": "assistant", "content": "MATCH (a:Authorhip)\\nRETURN count(DISTINCT a.authID)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the characters and duration of actors?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Character, a.Duration"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the DOI that has name 10.1007/s00220-004-1078-7!"}, {"role": "assistant", "content": "MATCH path=(:DOI {name:'10.1007/s00220-004-1078-7'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Thing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\",\n \"Type_of_Thing_Code\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"organization_id\": \"INTEGER\",\n \"service_details\": \"STRING\"\n }\n },\n \"TimedStatusOfThing\": {\n \"properties\": {\n \"Date_and_Date\": \"STRING\",\n \"thing_id\": \"INTEGER\",\n \"Status_of_Thing_Code\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"parent_organization_id\": \"INTEGER\",\n \"organization_id\": \"INTEGER\",\n \"organization_details\": \"STRING\"\n }\n },\n \"Property\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"property_address\": \"STRING\",\n \"property_type_code\": \"STRING\"\n }\n },\n \"CustomerEvent\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"thing_id\": \"INTEGER\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n },\n \"TimedLocationsOfThing\": {\n \"properties\": {\n \"thing_id\": \"INTEGER\",\n \"Location_Code\": \"STRING\",\n \"Date_and_Time\": \"STRING\"\n }\n },\n \"Resident\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"other_details\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"date_moved_out\": \"STRING\"\n }\n },\n \"CustomerEventNote\": {\n \"properties\": {\n \"property_id\": \"INTEGER\",\n \"service_type_code\": \"STRING\",\n \"resident_id\": \"INTEGER\",\n \"Customer_Event_Note_ID\": \"INTEGER\",\n \"date_moved_in\": \"STRING\",\n \"Customer_Event_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"TimedStatusOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Thing\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDED_BY\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerEvent\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEventNote\"\n },\n {\n \"from\": \"TimedLocationsOfThing\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Thing\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Property\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_IN\",\n \"to\": \"CustomerEvent\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"Resident\",\n \"type\": \"LIVES_WITH\",\n \"to\": \"Resident\"\n },\n {\n \"from\": \"CustomerEventNote\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerEvent\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_WITH\": {\n \"other_details\": \"STRING\",\n \"date_provided\": \"STRING\",\n \"date_requested\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'"}, {"role": "assistant", "content": "MATCH (T1:Timed_Status_of_Thing)-[:RELATES_TO]->(T2:Thing)\\nWHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'\\nRETURN DISTINCT T2.thing_id, T2.Type_of_Thing_Code"}]} {"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 follow 'neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(:Me {screen_name: 'neo4j'})\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to 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 list their properties!"}, {"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]->(n)\\nRETURN properties(n), 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": "Who are the top 3 actors based on the number of movies they have acted in?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nRETURN a.name, count(m) AS movies_count\\nORDER BY movies_count 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 three characters whose degree is greater than 100."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 100\\nRETURN c.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 with a tagline that includes 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 \"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 roles of Laurence Fishburne in movies with a release year after 2000."}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Laurence Fishburne\"})-[:ACTED_IN]->(m:Movie)\\nWHERE m.released > 2000\\nRETURN m.title, m.released, [(p)-[r:ACTED_IN]->(m) | r.roles] AS 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": "Find the first 3 users who have retweeted tweets posted by 'neo4j'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)<-[:RETWEETS]-(retweet:Tweet)<-[:POSTS]-(retweeter:User)\\nRETURN DISTINCT retweeter.screen_name\\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": "Which users have interacted with users located at a y-coordinate greater than 10000?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.y > 10000\\nRETURN DISTINCT u1.label"}]} {"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 904b65f98bb6823aaf3f72721984560a, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'904b65f98bb6823aaf3f72721984560a'})-[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 \"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 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 pages 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.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of last_name and author_id from Author where last_name does not start with C!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.last_name STARTS WITH 'C'\\nRETURN DISTINCT n.last_name AS last_name, n.author_id AS author_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": "Identify the first 3 directors who have directed a movie with an IMDb rating lower than 4.0."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.imdbRating < 4.0\\nRETURN DISTINCT d.name\\nORDER BY d.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 top 5 countries where the most adult films have been produced."}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name AS country, COUNT(a) AS numberOfAdultFilms\\nORDER BY numberOfAdultFilms DESC\\nLIMIT 5"}]} {"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 1, skip the first 2 records and return the next 2 records of comments!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments STARTS WITH '1'\\nWITH n.comments AS comments SKIP 2\\nLIMIT 2\\nRETURN comments"}]} {"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 country code of 'HKG' and provide their incorporation dates."}, {"role": "assistant", "content": "MATCH (e:Entity {country_codes: 'HKG'})\\nRETURN e.name, e.incorporation_date"}]} {"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 sorted by their star rating in descending order."}, {"role": "assistant", "content": "MATCH (r:Review)\\nRETURN r.reviewId, r.stars, r.text\\nORDER BY r.stars DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the stories of the building with the largest height."}, {"role": "assistant", "content": "MATCH (b:Building)\\nRETURN b.Stories\\nORDER BY b.Height 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 the customers who have placed orders that include products from both the 'Beverages' and 'Seafood' categories."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category)\\nWHERE cat.categoryName = 'Beverages' OR cat.categoryName = 'Seafood'\\nWITH c, o, count(DISTINCT cat.categoryName) AS distinctCategories\\nWHERE distinctCategories = 2\\nRETURN DISTINCT 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": "Which streams are part of a team created after 2015 and list the first 5."}, {"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\\nORDER BY t.createdAt\\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": "Find all movies that have been rated exactly 5 times."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, COUNT(u) AS ratingCount\\nWHERE ratingCount = 5\\nRETURN m.title AS movieTitle, m.movieId AS movieId"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Report nodes and extract their report_id property!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id"}]} {"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 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Journal for which journal_id is d41d8cd98f00b204e9800998ecf8427e!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d41d8cd98f00b204e9800998ecf8427e'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 department name and number for the product named 'Timeless Highwaist'?"}, {"role": "assistant", "content": "MATCH (p:Product {prodName: 'Timeless Highwaist'})<-[:VARIANT_OF]-(a:Article)-[:FROM_DEPARTMENT]->(d:Department)\\nRETURN d.departmentName, d.departmentNo"}]} {"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 that interact with a weight of exactly 92 in book 2."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2 {weight: 92}]->(c2:Character)\\nRETURN c1.name AS Character1, c2.name AS Character2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Show all region code and region name sorted by the codes."}, {"role": "assistant", "content": "MATCH (r:Region)\\nRETURN r.Region_code, r.Region_name\\nORDER BY r.Region_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the maximum and minimum number of cows across all farms."}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN max(f.Cows), min(f.Cows)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of the product that has the smallest capacity."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN cc.catalog_entry_name\\nORDER BY cc.capacity ASC\\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 languages used by streams that have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.followers > 10000\\nRETURN DISTINCT l.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": "List the entities with jurisdiction 'SAM' and their respective company types."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction = 'SAM'\\nRETURN e.name AS entity_name, e.company_type AS company_type"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Journal where name contains Geom. Topol, along with the type of their relationship with Journal!"}, {"role": "assistant", "content": "MATCH (d:Journal)-[r]->(n)\\nWHERE d.name CONTAINS 'Geom. Topol'\\nRETURN n, TYPE(r)"}]} {"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": "Return the report_id for Report combined with the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Topic with description equal to 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:Topic)-[*3]->(n)\\nWHERE a.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.'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the last_name for Author!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.last_name 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 properties of nodes that are 3 hops away from Journal with journal_id equal to e7b0a9b48142710ab6e87f136f6b7606!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*3]->(n)\\nWHERE a.journal_id = 'e7b0a9b48142710ab6e87f136f6b7606'\\nRETURN 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 is the average score of questions asked by users with more than 10,000 reputation?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 10000\\nRETURN AVG(q.score) AS average_score"}]} {"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 1 or cluster is less than 1!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 1 OR n.cluster < 1\\nRETURN n\\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": "Under which product type and category does the 'Wrappy speed dress' fall?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Wrappy speed dress'\\nRETURN p.productTypeName, p.productGroupName"}]} {"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 genres most frequently linked to movies directed by 'Steven Spielberg'."}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Steven Spielberg'})-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nRETURN g.name AS genre, count(*) AS frequency\\nORDER BY frequency DESC\\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": "Fetch abstract of the Article that are connected to Journal via PUBLISHED_IN!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[:PUBLISHED_IN]->(:Journal) }\\nRETURN n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find all the catalog publishers whose name contains \"Murray\""}, {"role": "assistant", "content": "MATCH (c:Catalog)\\nWHERE c.catalog_publisher =~ \".*Murray.*\"\\nRETURN DISTINCT(c.catalog_publisher)"}]} {"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 d41d8cd98f00b204e9800998ecf8427e and list their properties, including those of Journal!"}, {"role": "assistant", "content": "MATCH (b:Journal)-[r]->(n)\\nWHERE b.journal_id = 'd41d8cd98f00b204e9800998ecf8427e'\\nRETURN properties(b) AS Journal_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RefIncidentType\": {\n \"properties\": {\n \"incident_type_description\": \"STRING\",\n \"incident_type_code\": \"STRING\"\n }\n },\n \"StudentsInDetention\": {\n \"properties\": {\n \"student_id\": \"INTEGER\",\n \"detention_id\": \"INTEGER\",\n \"incident_id\": \"INTEGER\"\n }\n },\n \"Teacher\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"teacher_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"BehaviorIncident\": {\n \"properties\": {\n \"incident_type_code\": \"STRING\",\n \"date_incident_start\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"recommendations\": \"STRING\",\n \"incident_id\": \"INTEGER\",\n \"date_incident_end\": \"STRING\"\n }\n },\n \"StudentAddress\": {\n \"properties\": {\n \"monthly_rental\": \"FLOAT\",\n \"other_details\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_address_from\": \"STRING\"\n }\n },\n \"Detention\": {\n \"properties\": {\n \"datetime_detention_end\": \"STRING\",\n \"detention_type_code\": \"STRING\",\n \"detention_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\",\n \"datetime_detention_start\": \"STRING\"\n }\n },\n \"RefDetentionType\": {\n \"properties\": {\n \"detention_type_code\": \"STRING\",\n \"detention_type_description\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"other_student_details\": \"STRING\",\n \"date_first_rental\": \"STRING\",\n \"date_left_university\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"AssessmentNote\": {\n \"properties\": {\n \"date_of_notes\": \"STRING\",\n \"notes_id\": \"INTEGER\",\n \"student_id\": \"INTEGER\",\n \"teacher_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"RefAddressType\": {\n \"properties\": {\n \"address_type_code\": \"STRING\",\n \"address_type_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"RELATED_TO\",\n \"to\": \"BehaviorIncident\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefIncidentType\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"RELATED_TO\",\n \"to\": \"StudentsInDetention\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"ATTENDS\",\n \"to\": \"Detention\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"Detention\",\n \"type\": \"RELATIONSHIP_TYPE\",\n \"to\": \"RefDetentionType\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"BehaviorIncident\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentsInDetention\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"AssessmentNote\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Teacher\"\n },\n {\n \"from\": \"StudentAddress\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Teacher\",\n \"type\": \"TEACHES_AT\",\n \"to\": \"Address\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first names of teachers whose email address contains the word \"man\"."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.email_address CONTAINS \"man\"\\nRETURN t.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": "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 g.name AS genre\\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": "What is the 'label' of the User with 'key' '0'?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.key = '0'\\nRETURN u.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": "What is the average number of votes for movies with a rating above 90?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 90\\nWITH avg(m.votes) AS average_votes\\nRETURN average_votes"}]} {"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 movies with a rating higher than 95?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[r:REVIEWED]-()\\nWHERE r.rating > 95\\nRETURN DISTINCT p.name"}]} {"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 stadium name and the number of concerts in each stadium."}, {"role": "assistant", "content": "MATCH (T1:concert)-[]-(T2:stadium)\\nWITH count(T1.stadium_id) AS count, T2.name AS name\\nRETURN name,count"}]} {"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 ids of documents that have 2 or more paragraphs?"}, {"role": "assistant", "content": "MATCH (paragraphs:Paragraphs)\\nWITH paragraphs.Document_ID AS Document_ID, count(*) AS count\\nWHERE count >= 2\\nRETURN Document_ID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Show names of technicians who are assigned to repair machines with value point more than 70."}, {"role": "assistant", "content": "MATCH (t1:RepairAssignment)-[:ASSIGNED_TO]->(t3:Technician), (t1)-[:ASSIGNED_TO]->(m2:Machine)\\nWHERE m2.value_points > 70\\nRETURN t3.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to 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 list their properties!"}, {"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)\\nRETURN properties(n), 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": "Which entities have a `struck_off_date` in February 2014?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date =~ '..-FEB-2014'\\nRETURN e.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 is the color group name for 'Tulum Tie Brief'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Tulum Tie Brief'})\\nRETURN a.colourGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\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 (m:Musical)\\nWHERE m.Award <> \"Tony Award\"\\nRETURN DISTINCT m.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": "Name the top 5 movies with the most IMDb votes released before the year 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 2000\\nRETURN m.title AS title, m.imdbVotes AS votes\\nORDER BY m.imdbVotes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What are the name and level of catalog structure with level number between 5 and 10"}, {"role": "assistant", "content": "MATCH (c:CatalogStructure)\\nWHERE c.catalog_level_number >= 5 AND c.catalog_level_number <= 10\\nRETURN c.catalog_level_name, c.catalog_level_number"}]} {"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.zone AS ZoneNumber\\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 number of keywords associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN m.title AS movie, count(k) AS keywordCount\\nORDER BY keywordCount DESC\\nLIMIT 3"}]} {"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 alg-geom, along with the type of their relationship with Categories!"}, {"role": "assistant", "content": "MATCH (d:Categories)-[r]->(n)\\nWHERE d.specifications CONTAINS 'alg-geom'\\nRETURN n, TYPE(r)"}]} {"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 9!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.author_id STARTS WITH '9'\\nRETURN DISTINCT n.author_id AS author_id, n.first_name AS first_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": "Identify the top 5 hashtags used in tweets that 'Neo4j' has retweeted."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet)-[:RETWEETS]->(retweeted_tweet)-[:TAGS]->(hashtag)\\nRETURN hashtag.name AS hashtag, count(*) AS count\\nORDER BY count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names and publication dates of all catalogs that have catalog level number greater than 5."}, {"role": "assistant", "content": "MATCH (c:Catalog)<-[:CONTAINS]-(cs:CatalogStructure)\\nWHERE cs.catalog_level_number > 5\\nRETURN c.catalog_name, c.date_of_publication"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "What is the level name of the cheapest catalog (in USD)?"}, {"role": "assistant", "content": "MATCH (t1:CatalogContent)\\nMATCH (t2:CatalogStructure)\\nWHERE t1.catalog_level_number = t2.catalog_level_number\\nRETURN t2.catalog_level_name\\nORDER BY t1.price_in_dollars\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each classroom, show the classroom number and find how many students are using it."}, {"role": "assistant", "content": "MATCH (n:List)\\nRETURN n.Classroom, count(*) as 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": "Which entities have filings that originated from Singapore?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank_country = 'Singapore'\\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 the top 3 streams that have the language 'en'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name, s.followers\\nORDER BY s.followers 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 names of the first 5 streams that were created before 2015."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt < datetime('2015-01-01T00:00:00Z')\\nRETURN s.name\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"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 the shortest path between Report where report_id is d4a4409b7e8a77f4894c998a04162257 and Journal, with name equal J.Statist.Phys, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[*]-(e:Journal{name:'J.Statist.Phys'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Keyword where key_id is d2d74b47b149d8090871a2f33e80809b, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[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": "How many users are moderators for the stream 'itsbigchase'?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: 'itsbigchase'})<-[:MODERATOR]-(u:User)\\nRETURN count(u) AS numberOfModerators"}]} {"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 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., and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a: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 p, nodes(p)\\nORDER BY LENGTH(p) 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": "What is the average 'degree' of characters in community 579?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 579})\\nRETURN avg(c.degree) AS average_degree"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the number of distinct publication dates?"}, {"role": "assistant", "content": "MATCH (p:Publication)\\nWITH count(DISTINCT p.Publication_Date) as num\\nRETURN num"}]} {"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 AS language"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 packages provide access to the genre 'Animation'?"}, {"role": "assistant", "content": "MATCH (p:Package)-[:PROVIDES_ACCESS_TO]->(g:Genre {name: 'Animation'})\\nRETURN p.name AS package"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where doi_id is 3cee0a24d271bd40a0fb03d70f70dcc7 and Topic, with description equal 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, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{doi_id:'3cee0a24d271bd40a0fb03d70f70dcc7'})-[*]-(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'}))\\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 5 most recent movies that have been added to the 'Toy Story Collection'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: 'Toy Story Collection'})\\nRETURN m\\nORDER BY m.release_date 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 first 5 users who are moderators in the stream '9linda'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream {name: '9linda'})\\nRETURN u.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Keyword where name is super-exponential growth and UpdateDate, for which update_date equals 2007-05-23?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'super-exponential growth'})-[*]->(d:UpdateDate{update_date:'2007-05-23'})\\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": "What is the average number of followers for people born in the 1980s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:FOLLOWS]->(f:Person)\\nWHERE p.born >= 1980 AND p.born < 1990\\nWITH f, COUNT(p) AS followers\\nRETURN AVG(followers) AS 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": "Which users have a label including 'social' and an area more than 2.0? List the top 5."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.label CONTAINS 'social' AND u.area > 2.0\\nRETURN u\\nORDER BY u.area DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the classrooms in which grade 4 is studying."}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Grade = 4\\nRETURN DISTINCT n.Classroom"}]} {"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 never ordered a discontinued product."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE p.discontinued = false\\nWITH c, COUNT(DISTINCT p) AS productCount\\nMATCH (c)-[:PURCHASED]->(o)-[:ORDERS]->(p)\\nWITH c, productCount, COUNT(DISTINCT p) AS totalProductCount\\nWHERE productCount = totalProductCount\\nRETURN c.companyName AS customerName, c.contactName AS contactName, c.customerID AS customerID\\nLIMIT 3"}]} {"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 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.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": "List the first 3 actors who have worked with both Tom Hanks and Peter Cornwell."}, {"role": "assistant", "content": "MATCH (tom:Person { name: 'Tom Hanks' })-[:CAST_FOR]->(movie1:Movie)<-[:CAST_FOR]-(actor1:Person)\\nWITH collect(actor1) AS actorsWhoWorkedWithTomHanks\\nMATCH (peter:Person { name: 'Peter Cornwell' })-[:CAST_FOR]->(movie2:Movie)<-[:CAST_FOR]-(actor2:Person)\\nWHERE actor2 IN actorsWhoWorkedWithTomHanks\\nRETURN actor2.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Capacity\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\",\n \"Opening_year\": \"INTEGER\"\n }\n },\n \"Swimmer\": {\n \"properties\": {\n \"meter_100\": \"FLOAT\",\n \"meter_300\": \"STRING\",\n \"Time\": \"STRING\",\n \"meter_400\": \"STRING\",\n \"name\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"meter_500\": \"STRING\",\n \"meter_200\": \"STRING\",\n \"meter_600\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"meter_700\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"STRING\",\n \"ID\": \"INTEGER\",\n \"Stadium_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Swimmer\",\n \"type\": \"COMPETES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_IN\",\n \"to\": \"Stadium\"\n }\n ],\n \"relationshipProperties\": {\n \"COMPETES_IN\": {\n \"Result\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the names of stadiums that some Australian swimmers have been to."}, {"role": "assistant", "content": "MATCH (s:Swimmer)-[:COMPETES_IN]->(e:Event)-[:HELD_IN]->(st:Stadium)\\nWHERE s.Nationality = 'Australia'\\nRETURN st.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 word \"funny\" in their review summary and released after 2010?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary CONTAINS 'funny' AND m.released > 2010\\nWITH avg(r.rating) AS averageRating\\nRETURN averageRating"}]} {"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 actors_count\\nORDER BY actors_count DESC\\nRETURN d.name, actors_count\\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 been mentioned in the same tweets as 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {name: 'Neo4j'})-[:MENTIONS]-(t:Tweet)-[:MENTIONS]-(other:User)\\nWITH avg(other.followers) AS average_followers\\nRETURN average_followers"}]} {"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": "Find nodes that are at the end of a path starting at Categories where specifications is nlin.SI and traversing through DOI with doi_id fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'nlin.SI'})-[*]->(d:DOI{doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})-[*]->(n)\\nRETURN n"}]} {"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 Ra!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name =~'Ra.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the manager with the most gas stations that opened after 2000?"}, {"role": "assistant", "content": "MATCH (gs:GasStation)\\nWHERE gs.Open_Year > 2000\\nWITH gs.Manager_Name AS manager_name, COUNT(gs) AS count\\nORDER BY count DESC\\nRETURN manager_name\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name all districts with city area greater than 10 or population larger than 100000"}, {"role": "assistant", "content": "MATCH (d:District)\\nWHERE d.City_Area > 10 OR d.City_Population > 100000\\nRETURN d.District_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 services listen to port 443 and are instances of 'java'?"}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})-[:LISTENS]->(p:Port {port: 443})\\nRETURN s"}]} {"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 LaTeX2e, 36 pages ; Some misprints are corrected or abstract is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = 'LaTeX2e, 36 pages ; Some misprints are corrected' OR n.abstract IS NOT NULL\\nRETURN DISTINCT 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": "Find all characters with a fastrf_embedding value containing a number less than -0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE any(element IN c.fastrf_embedding\\nWHERE element < -0.5)\\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 been rated exactly 5 times?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, COUNT(u) AS rating_count\\nWHERE rating_count = 5\\nRETURN m.title AS movie_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": "List the top 5 most recent movies in the graph."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.released 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 games played by streams that have \"en\" as their language."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: \"en\"})\\nMATCH (s)-[:PLAYS]->(g:Game)\\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}"}, {"role": "user", "content": "Look for the comments of the Article that is not related to the Categories with the category_id 994d468c3f0dd780baf58c6d7f205afd!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Categories {category_id: '994d468c3f0dd780baf58c6d7f205afd'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.comments"}]} {"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 is the best rated movie\""}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nRETURN m.title AS movie, r.rating AS rating\\nORDER BY rating 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 characters with a fastrf_embedding value at the last position less than -0.5? Limit to 3 characters."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[9] < -0.5\\nRETURN c.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 keywords associated with the movie 'Waiting to Exhale'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Waiting to Exhale'})-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN k.name\\nORDER BY k.id\\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": "How many switches are connected to interfaces in zone 2?"}, {"role": "assistant", "content": "MATCH (z:Zone {zone: 2})-[:ROUTES]->(i:Interface)<-[:ROUTES]-(s:Switch)\\nRETURN count(s) AS numberOfSwitches"}]} {"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)\\nRETURN m.title, m.imdbVotes\\nORDER BY m.imdbVotes 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": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 641-672 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 = '641-672'\\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": "Find the characters who interacted with 'Aemon-Targaryen-(Dragonknight)' in 'INTERACTS' relationship."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Aemon-Targaryen-(Dragonknight)'})-[r:INTERACTS]-(other)\\nRETURN other.name AS character_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 affiliation is Nice - Sophia Antipolis or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation = 'Nice - Sophia Antipolis' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"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 label is Dynamical Systems_10 and traversing through Keyword with key_id 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Dynamical Systems_10'})-[*]->(d:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the titles of books that are not published."}, {"role": "assistant", "content": "MATCH (b:Book)\\nWHERE NOT EXISTS { (p:Publication {Book_ID: b.Book_ID}) }\\nRETURN b.Title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Editor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Editor_ID\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"Sales\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Date\": \"STRING\",\n \"Journal_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n },\n {\n \"from\": \"Journal\",\n \"type\": \"EDited_BY\",\n \"to\": \"Editor\"\n }\n ],\n \"relationshipProperties\": {\n \"EDited_BY\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the names of editors in ascending order of age."}, {"role": "assistant", "content": "MATCH (e:Editor)\\nRETURN e.Name\\nORDER BY e.Age ASC"}]} {"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 (d:Director {bornIn: 'Burchard, Nebraska, USA'})-[:DIRECTED]->(m:Movie)\\nRETURN m.title AS MovieName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 video 'Jonah: A VeggieTales Movie'?"}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of gymnasts."}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN count(g)"}]} {"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 number of followers who follow 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u\\nORDER BY u.followers ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Topic for which cluster is 6!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'6'})-[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": "What are the first 3 racks that hold machines of type 'xl-16/256/625'?"}, {"role": "assistant", "content": "MATCH (t:Type {name: 'xl-16/256/625'})<-[:TYPE]-(m:Machine)-[:HOLDS]-(r:Rack)\\nRETURN r.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 countries with the most movies produced?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(m) AS NumberOfMovies\\nORDER BY NumberOfMovies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the main industries of the companies without gas stations and what are the companies?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nWHERE NOT (c)-[:OWNS]->()\\nRETURN c.Company, c.Main_Industry"}]} {"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=discrete log problem!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'discrete log problem'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Topic where label is Dynamical Systems_10 and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.label = 'Dynamical Systems_10'\\nRETURN properties(b) AS Topic_props, 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": "How many unique relationships originate from Report where report_no is G&T migration 2000-1?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'G&T migration 2000-1'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(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": "Which 3 entities have filed the most number of filings concerning banks in 'Australia'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:CONCERNS]->(b:Entity)-[:COUNTRY]->(c:Country {name: 'Australia'})\\nWITH e, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 3\\nRETURN e.name AS entity_name, num_filings"}]} {"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": "List the names of employees and sort in ascending order of age."}, {"role": "assistant", "content": "MATCH (employee:employee)\\nRETURN employee.Name\\nORDER BY employee.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 teams are associated with more than three different streams?"}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nWITH t, count(distinct s) as num_streams\\nWHERE num_streams > 3\\nRETURN t.name as team_name, num_streams"}]} {"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 all tweets that mention 'Neo4j' and contain a link."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(:User {screen_name: 'neo4j'})\\nWHERE exists{ (t)-[:CONTAINS]->(:Link) }\\nRETURN t"}]} {"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 had more than 5 actors?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH m, count(p) AS actorCount\\nWHERE actorCount > 5\\nRETURN m.title, actorCount"}]} {"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 are at the end of a path starting from Article, with comments equal to Published by Geometry and Topology at\n http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'Published by Geometry and Topology at http://www.maths.warwick.ac.uk/gt/GTVol4/paper14.abs.html'})-[:HAS_DOI]->(c:DOI)-[r]->(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": "How many Entities share the same registered address as an entity with the service provider \"Mossack Fonseca\"?"}, {"role": "assistant", "content": "MATCH (entity1:Entity {service_provider: 'Mossack Fonseca'})-[:registered_address]->(address:Address)\\nMATCH (address)<-[:registered_address]-(entity2:Entity)\\nWITH DISTINCT entity2\\nRETURN count(entity2)"}]} {"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 the same movie and what were their review summaries?"}, {"role": "assistant", "content": "MATCH (p1:Person)-[r1:REVIEWED]->(m:Movie)<-[r2:REVIEWED]-(p2:Person)\\nWHERE p1 <> p2\\nRETURN p1.name AS Reviewer1, p2.name AS Reviewer2, m.title AS Movie, r1.summary AS Review1, r2.summary AS Review2"}]} {"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 lowest follower count but with over 1 million total views."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count > 1000000\\nRETURN s.name, s.followers, s.total_view_count\\nORDER BY s.followers ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show each industry and the corresponding number of companies in that industry."}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Industry, 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": "How many different users have reviewed 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN count(DISTINCT u) AS NumberOfUsers"}]} {"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 ( Summer Show )\": \"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 template type codes and descriptions."}, {"role": "assistant", "content": "MATCH (ref_template_types:Ref_Template_Types)\\nRETURN ref_template_types.Template_Type_Code,ref_template_types.Template_Type_Description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many distinct publication dates are there in our record?"}, {"role": "assistant", "content": "MATCH (p:Publication)\\nRETURN COUNT(DISTINCT p.Publication_Date)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the comments of the Article that is not related to the Report with the report_id 5049b80a2935f95cc95cf14dbfb8c610!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Report {report_id: '5049b80a2935f95cc95cf14dbfb8c610'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.comments"}]} {"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 1071?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE n.article_id = 1071\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where label is Mathematics_9!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Mathematics_9'\\nRETURN n"}]} {"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 title is not $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> '$A_{\\infty}$-structures on an elliptic curve'\\nRETURN DISTINCT n.title AS title"}]} {"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 f6582df4742923aacfc6e67638bd4bf6, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[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 \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 21 pages, AMS-LaTeX and Article, with article_id equal 1009, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'21 pages, AMS-LaTeX'})-[*]-(e:Article{article_id:'1009'}))\\nRETURN nodes(p)"}]} {"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 1056 and Article, for which title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1056'}), (b:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"GasStation\": {\n \"properties\": {\n \"Vice_Manager_Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Manager_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Representative_Name\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"Company_ID\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Rank\": \"INTEGER\",\n \"Profits_billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Main_Industry\": \"STRING\",\n \"Company\": \"STRING\",\n \"Market_Value\": \"FLOAT\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"OWNS\",\n \"to\": \"GasStation\"\n }\n ],\n \"relationshipProperties\": {\n \"OWNS\": {\n \"Rank_of_the_Year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the name and rank of every company ordered by descending number of sales?"}, {"role": "assistant", "content": "MATCH (c:Company)\\nRETURN c.Company, c.Rank\\nORDER BY c.Sales_billion DESC"}]} {"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 provide products in the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN DISTINCT s.companyName\\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 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!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.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. '\\nRETURN m.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 supply 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, categories"}]} {"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 with a reputation over 50000 asked questions that were later answered?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 50000 AND q.answered = true\\nRETURN u.display_name, u.reputation, q.title, q.link"}]} {"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 9, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'9'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"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 names of the singers who performed in a concert in 2014?"}, {"role": "assistant", "content": "MATCH ()-[T1:singer_in_concert]-(T2:singer)-[]-(T3:concert)\\nWHERE T3.year = 2014\\nRETURN T2.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the list of attribute data types possessed by more than 3 attribute definitions."}, {"role": "assistant", "content": "MATCH (ad:AttributeDefinition)\\nWITH ad.attribute_data_type AS attribute_data_type, COUNT(*) AS count\\nWHERE count > 3\\nRETURN DISTINCT attribute_data_type"}]} {"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 (`productName`) has the highest difference between its `unitsInStock` and `reorderLevel`?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p, abs(p.unitsInStock - p.reorderLevel) AS stockDifference\\nWITH max(stockDifference) AS maxDifference\\nMATCH (p:Product)\\nWHERE abs(p.unitsInStock - p.reorderLevel) = maxDifference\\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 top 5 products with the lowest units in stock."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.productName, p.unitsInStock\\nORDER BY p.unitsInStock 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 users who follow Neo4j and have posted tweets using the source \"Twitter Web App\"."}, {"role": "assistant", "content": "MATCH (neo:User {screen_name: 'neo4j'})\\nMATCH (user:User)-[:FOLLOWS]->(neo)\\nMATCH (user)-[:POSTS]->(tweet:Tweet)-[:USING]->(source:Source {name: 'Twitter Web App'})\\nRETURN DISTINCT user.screen_name AS usernames"}]} {"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 entities are most frequently listed as originators in filings from 2010 to 2015?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)\\nWHERE f.begin >= datetime('2010-01-01T00:00:00Z') AND f.end <= datetime('2015-12-31T23:59:59Z')\\nRETURN e.name, count(f) AS filings_count\\nORDER BY filings_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": "List the first 3 streams that were created in 2018."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt >= datetime('2018-01-01') AND s.createdAt < datetime('2019-01-01')\\nRETURN s\\nORDER BY s.createdAt\\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 247!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.meta < '247'}\\nRETURN n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the DOI that has doi_id ee4af8f04acefe1036a78a4436691f55!"}, {"role": "assistant", "content": "MATCH path=(:DOI {doi_id:'ee4af8f04acefe1036a78a4436691f55'})-->()\\nRETURN path"}]} {"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 1056 or article_id is less than 1048!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1056 OR n.article_id < 1048\\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": "List the top 3 adult films that have been rated exactly 3 times."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE count{(u:User)-[:RATED]->(a)} = 3\\nRETURN a\\nORDER BY a.average_vote 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 first 5 users who wrote a review with a rating of 5 stars."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review {stars: 5})\\nRETURN u\\nLIMIT 5"}]} {"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!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation 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 people who have the most credits as a producer."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:CREW_FOR]->(m:Movie)\\nWHERE r.job = \"Producer\"\\nRETURN p.name, COUNT(r) AS producer_credits\\nORDER BY producer_credits 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 distinct values of the category_id from Categories where either category_id is 33657234da1dc070ea09e7c31bb86abb or category_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '33657234da1dc070ea09e7c31bb86abb' OR n.category_id IS NOT NULL\\nRETURN DISTINCT n.category_id AS category_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 9 or cluster is less than 8!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 9 OR n.cluster < 8\\nRETURN n\\nLIMIT 8"}]} {"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 and their respective service providers that were inactivated on '18-FEB-2013'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.inactivation_date = '18-FEB-2013'\\nRETURN e.name AS entity_name, e.service_provider AS service_provider"}]} {"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 Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Chow groups of weighted hypersurfaces'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Find the code of the document type \"Paper\"."}, {"role": "assistant", "content": "MATCH (dt:RefDocumentType)\\nWHERE dt.Document_Type_Name = \"Paper\"\\nRETURN dt.Document_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the label for Topic combined with the description for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label 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": "Who are three characters connected by an INTERACTS45 relationship in book 45?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS45]->(c2:Character)-[:INTERACTS45]->(c3:Character)\\nRETURN c1.name, c2.name, c3.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find four Article that have HAS_CATEGORY links!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE EXISTS ((p)-[:HAS_CATEGORY]->())\\nRETURN p\\nLIMIT 4"}]} {"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": "Return the average attendance across all shows."}, {"role": "assistant", "content": "MATCH (show:show)\\nRETURN avg(show.Attendance)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 movie 'Father of the Bride Part II'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Father of the Bride Part II'})-[:IN_GENRE]->(g:Genre)\\nRETURN g\\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 top 3 characters with the highest weight in INTERACTS1 relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS1]->(:Character)\\nRETURN c.name, sum(r.weight) AS totalWeight\\nORDER BY totalWeight 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": "What is the average x-coordinate of users with a size less than 1.82?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size < 1.82\\nRETURN avg(u.x)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the last_name of the Author and the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Article)\\nRETURN n.last_name, m.article_id\\nLIMIT 8"}]} {"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": "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 pages 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.pages 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 are the top 3 questions with the most favorites?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.favorites\\nORDER BY q.favorites 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 5 streams that have a description mentioning 'channel'."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'channel'\\nRETURN s.name, s.description\\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": "Which users followed by 'Neo4j' have posted tweets mentioning 'Neo4j'? Show the top 5."}, {"role": "assistant", "content": "MATCH (n:User {name: 'Neo4j'})-[:FOLLOWS]->(u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(m:User {name: 'Neo4j'})\\nRETURN u.name AS UserName, count(t) AS TweetsCount\\nORDER BY TweetsCount 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 orders that include the top 3 most expensive products."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p, toFloat(p.unitPrice) as price\\nORDER BY price DESC\\nLIMIT 3\\nWITH collect(p.productID) as productIds\\nMATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE p.productID IN productIds\\nRETURN DISTINCT o.orderID"}]} {"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": "Return the report_id for Report combined with the cluster for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.cluster AS Records"}]} {"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 and locations of the top 3 entities that benefited from filings where the amount exceeded 500,000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.amount > 500000\\nRETURN e.name AS EntityName, e.location AS Location\\nORDER BY f.amount 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 the top 5 movies released most recently."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released IS NOT NULL\\nRETURN m\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Book\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Issues\": \"FLOAT\",\n \"Writer\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"Book_ID\": \"INTEGER\",\n \"Publisher\": \"STRING\",\n \"Publication_Date\": \"STRING\",\n \"Price\": \"FLOAT\",\n \"Publication_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the titles of the books in ascending order of issues."}, {"role": "assistant", "content": "MATCH (b:Book)\\nRETURN b.Title\\nORDER BY b.Issues ASC"}]} {"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 Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Free Field Construction for the ABF Models in Regime II'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"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 c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c807a6943bac079cc85fda45518ea7f4'})-[*]->(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": "What are the different types of companies listed under the 'Other' node category?"}, {"role": "assistant", "content": "MATCH (o:Other)\\nWHERE o.type IS NOT NULL\\nRETURN DISTINCT o.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 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\\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": "What is the IP address of the interface that exposes port 443?"}, {"role": "assistant", "content": "MATCH (i:Interface)-[:EXPOSES]->(p:Port {port: 443})\\nRETURN i.ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "What are the characters of actors in descending order of age?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN a.Character\\nORDER BY a.age DESC"}]} {"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 reviews made by Angie."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)\\nRETURN r"}]} {"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 is the name and capacity for the stadium with the highest average attendance?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN stadium.Name,stadium.Capacity\\nORDER BY stadium.Average 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": "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.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": "What are the first 3 videos with a 'status' of 'In Production'?"}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.status = 'In Production'\\nRETURN v\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Faculty\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Faculty\": \"FLOAT\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"CsuFee\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"CampusFee\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Degree\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Degrees\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"Enrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"FTE_AY\": \"INTEGER\",\n \"TotalEnrollment_AY\": \"INTEGER\",\n \"Campus\": \"INTEGER\"\n }\n },\n \"DisciplineEnrollment\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Graduate\": \"INTEGER\",\n \"Discipline\": \"INTEGER\",\n \"Campus\": \"INTEGER\",\n \"Undergraduate\": \"INTEGER\"\n }\n },\n \"Campus\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"County\": \"STRING\",\n \"Location\": \"STRING\",\n \"Id\": \"INTEGER\",\n \"Campus\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Enrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"DisciplineEnrollment\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"CsuFee\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Degree\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n },\n {\n \"from\": \"Faculty\",\n \"type\": \"TEACHES\",\n \"to\": \"Campus\"\n }\n ]\n}"}, {"role": "user", "content": "Find the average fee on a CSU campus in 1996"}, {"role": "assistant", "content": "MATCH (n:CsuFee)\\nWHERE n.Year = 1996\\nRETURN avg(n.CampusFee)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 in the genre 'Drama'?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Drama'})<-[:IN_GENRE]-(m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH pc, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3\\nRETURN pc.name AS production_company, movie_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 adult films with a runtime longer than 60 minutes."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.runtime > 60\\nRETURN a\\nORDER BY a.id\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of actors."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN count(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 {name: 'ru'})\\nWHERE s.followers > 20000\\nRETURN s.name AS stream_name, s.followers"}]} {"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}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where title is Maslov class and minimality in Calabi-Yau manifolds and traversing through Author with last_name Dunajski!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})-[*]->(d:Author{last_name:'Dunajski'})-[*]->(n)\\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 \"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 article_id is 4179 and are PUBLISHED_IN linked to Journal, where year is 2001?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'4179'})-[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 \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 with a runtime greater than 120 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 120\\nWITH avg(m.budget) AS average_budget\\nRETURN average_budget"}]} {"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 created their accounts after the year 2018?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN avg(u.followers) AS average_followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the first names of students studying in room 107?"}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Classroom = 107\\nRETURN DISTINCT n.FirstName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Article where article_id contains 1015, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.article_id CONTAINS '1015'\\nRETURN n, TYPE(r)"}]} {"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 6!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id STARTS WITH '6'\\nRETURN n.key_id AS key_id, n.name AS 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 3 movies that were released in the 1990s and have an IMDB rating above 7."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 1990 AND m.year < 2000 AND m.imdbRating > 7\\nRETURN m.title, m.year, m.imdbRating\\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_id and the first_name 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.first_name AS first_name"}]} {"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 cs.CC and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'cs.CC'\\nRETURN properties(b) AS Categories_props, 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 community value greater than 700?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community > 700\\nRETURN count(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": "Can you find the top 5 most recent reviews?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r, u, b\\nORDER BY r.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": "Which movies have a status of 'Released' and an average vote less than 4?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released' AND m.average_vote < 4\\nRETURN m.title, m.average_vote"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Topic with label equal to Mathematics_9!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematics_9'})-[*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": "Show businesses that are both in 'Beer' and 'Coffee' categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE c.name = 'Beer'\\nWITH b\\nMATCH (b)-[:IN_CATEGORY]->(c2:Category)\\nWHERE c2.name = 'Coffee'\\nRETURN b"}]} {"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 \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the abstract of the Article that are linked via WRITTEN_BY to more than three Author, and list Author first_name 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.abstract AS abstract, count(m) AS count, COLLECT(m.first_name) as first_name\\nWHERE count > 3\\nRETURN abstract, count, first_name\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the id for the employee called Ebba?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.Employee_Name = \"Ebba\"\\nRETURN e.Employee_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 highest rating given to a movie?"}, {"role": "assistant", "content": "MATCH (:Person)-[review:REVIEWED]->(:Movie)\\nWITH max(review.rating) AS highestRating\\nRETURN highestRating"}]} {"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 is d3b321ed42589ea798c241aa7de23d2d!"}, {"role": "assistant", "content": "MATCH (n:Journal {journal_id:'d3b321ed42589ea798c241aa7de23d2d'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the last_name for Author combined with the comments for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.last_name AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.comments 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": "Find streams that were created after 2015 and have at least one chatter who is a user."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt > datetime('2015-01-01T00:00:00Z') AND exists { (s)-[:CHATTER]->(:User) }\\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": "Identify the top 3 tweets that contain links to 'https://twitter.com'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE l.url CONTAINS 'https://twitter.com'\\nRETURN t\\nORDER BY t.favorites 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": "Show the top 5 movies that have been rated exactly three times."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE count{(u:User)-[:RATED]->(m)} = 3\\nRETURN m\\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 Filings have a beneficiary bank in 'China'?"}, {"role": "assistant", "content": "MATCH (c:Country {name: 'China'})<-[:COUNTRY]-(e:Entity)<-[:BENEFITS]-(f:Filing)\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and attribute ID of the attribute definitions with attribute value 0."}, {"role": "assistant", "content": "MATCH (t1:AttributeDefinition)\\nMATCH (t2:CatalogContent_Additional_Attributes)\\nWHERE t2.attribute_value = \"0\" AND t1.attribute_id = t2.attribute_id\\nRETURN t1.attribute_name, t1.attribute_id"}]} {"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 title is not 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 DISTINCT n.comments AS comments"}]} {"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": "Find nodes that are at the end of a path starting at Keyword where name is logarithmic barrier penalty and traversing through Topic with cluster 8!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'logarithmic barrier penalty'})-[*]->(d:Topic{cluster:'8'})-[*]->(n)\\nRETURN n"}]} {"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 SISSA: 39/99/FM/GEO, and also to another node?"}, {"role": "assistant", "content": "39/99/FM/GEO, and also to another node?\nA: MATCH (a:Report{report_no:'SISSA: 39/99/FM/GEO'})-[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": "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-01') AND s.createdAt < datetime('2021-01-01') AND s.followers > 100000\\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": "Find characters connected by any INTERACTS relationship with a weight over 200."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS|INTERACTS1|INTERACTS2|INTERACTS3|INTERACTS45]->(c2:Character)\\nWHERE r.weight > 200\\nRETURN c1.name, r, c2.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 number of votes for movies released in the 2000s?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 2000 AND m.released < 2010\\nRETURN avg(m.votes) AS average_votes"}]} {"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 have a common property with Article where article_id is 4129 and are PUBLISHED_IN linked to Journal, where year is 2004?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'4129'})-[r:PUBLISHED_IN {year :'2004'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all districts with a city area greater than 10 or have more than 100000 people living there?"}, {"role": "assistant", "content": "MATCH (d:District)\\nWHERE d.City_Area > 10 OR d.City_Population > 100000\\nRETURN d.District_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal for which name starts with I, skip the first 2 records and return the next 2 records of name!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name STARTS WITH 'I'\\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 movies have a status of 'Released' and a budget greater than 25 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released' AND m.budget > 25000000\\nRETURN m"}]} {"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 PUMA 566, along with the type of their relationship with Report!"}, {"role": "assistant", "content": "MATCH (d:Report)-[r]->(n)\\nWHERE d.report_no CONTAINS 'PUMA 566'\\nRETURN n, TYPE(r)"}]} {"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": "Look for the journal_id of the Journal that is not related to the Author with the affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Author {affiliation: 'unspecified'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.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 combined total votes of all movies Joel Silver produced?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Joel Silver\"})-[:PRODUCED]->(m:Movie)\\nRETURN sum(m.votes) AS total_votes"}]} {"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 reviews written for businesses that have 'Brewing' in their name, and sort them by date."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name CONTAINS 'Brewing'\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nRETURN r.text, r.date\\nORDER BY r.date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"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 title and the number of nodes connected to them via PUBLISHED_IN with pages = 527-551."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '527-551'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.title AS title, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 both animated and non-animated movies?"}, {"role": "assistant", "content": "MATCH (animationGenre:Genre { name: 'Animation' })<-[:IN_GENRE]-(animationMovie:Movie)<-[:CAST_FOR]-(animationActor:Person)\\nWITH COLLECT(DISTINCT animationActor) AS animationActors\\nMATCH (nonAnimationGenre:Genre)<-[:IN_GENRE]-(nonAnimationMovie:Movie)<-[:CAST_FOR]-(nonAnimationActor:Person)\\nWHERE nonAnimationGenre.name <> 'Animation'\\nWITH animationActors, COLLECT(DISTINCT nonAnimationActor) AS nonAnimationActors\\nWITH apoc.coll.intersection(animationActors, nonAnimationActors) AS actorsInBoth\\nUNWIND actorsInBoth AS actor\\nRETURN actor.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 three users have posted the most about 'education'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:TAGS]->(:Hashtag {name: 'education'})\\nRETURN u.name, u.screen_name, count(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Keyword where key_id or name contains d2d74b47b149d8090871a2f33e80809b!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id CONTAINS 'd2d74b47b149d8090871a2f33e80809b'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Keyword)\\nWHERE m.name CONTAINS 'd2d74b47b149d8090871a2f33e80809b'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of employees that work for companies with sales bigger than 200."}, {"role": "assistant", "content": "MATCH (p:Person)-[e:WORKS_AT]->(c:Company)\\nWHERE c.Sales_in_Billion > 200\\nRETURN p.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 company number that starts with '240'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.company_number STARTS WITH '240'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Card_Number\": \"STRING\",\n \"Level\": \"INTEGER\",\n \"Hometown\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"Branch\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Branch_ID\": \"INTEGER\",\n \"Open_year\": \"STRING\",\n \"membership_amount\": \"STRING\",\n \"Address_road\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"MembershipRegisterBranch\": {\n \"properties\": {\n \"Branch_ID\": \"STRING\",\n \"Register_Year\": \"STRING\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?"}, {"role": "assistant", "content": "MATCH (Branch:Branch)\\nWHERE Branch.Open_year = 2011 OR Branch.City = \"London\"\\nRETURN min(Branch.Membership_amount), max(Branch.Membership_amount)"}]} {"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 directors of movies with more than 1000 votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:DIRECTED]-(p:Person)\\nWHERE m.votes > 1000\\nRETURN p.name AS Director, 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": "What are the top 3 movies by vote count 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('2000-01-01')\\nRETURN m.title, m.vote_count\\nORDER BY m.vote_count DESC\\nLIMIT 3"}]} {"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": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Summation and transformation formulas for elliptic hypergeometric series and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Summation and transformation formulas for 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 \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the region names affected by the storm with a number of deaths of least 10?"}, {"role": "assistant", "content": "MATCH (s:Storm)-[:AFFECTS]->(r:Region)\\nWHERE s.Number_Deaths >= 10\\nRETURN r.Region_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 is the latest 'Version' of the 'Software' with 'name' \"RHEL\"?"}, {"role": "assistant", "content": "MATCH (s:Software {name: \"RHEL\"})-[:VERSION]->(v:Version)\\nWHERE NOT ()-[:PREVIOUS]->(v)\\nRETURN v.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": "What is the average number of followers for users who have posted tweets containing the hashtag \"education\"?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nWITH t\\nMATCH (u:User)-[:POSTS]->(t)\\nRETURN avg(u.followers)"}]} {"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 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: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 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": "Who are the top 3 users with a size greater than 2 and have interacted with users with a size greater than 2?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u1.size > 2 AND u2.size > 2\\nRETURN u1.label AS User, u1.size AS Size\\nORDER BY u1.size DESC\\nLIMIT 3"}]} {"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": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 4129 and PUBLISHED_IN has year on 2004!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2004'}]->(m)\\nWHERE n.article_id='4129'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show me the classrooms grade 5 is using."}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Grade = 5\\nRETURN DISTINCT n.Classroom"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Article for which title is Maslov class and minimality in Calabi-Yau manifolds, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})-[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 first 3 streams that have a language set to 'en'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name AS stream_name, s.url AS stream_url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "How many products are there in the records?"}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nRETURN count(cc)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many students are there?"}, {"role": "assistant", "content": "MATCH (l:List)\\nRETURN count(l)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Membership_card\": \"STRING\",\n \"Address\": \"STRING\",\n \"Time_of_purchase\": \"INTEGER\",\n \"Level_of_membership\": \"INTEGER\",\n \"Member_ID\": \"INTEGER\"\n }\n },\n \"HappyHour\": {\n \"properties\": {\n \"Num_of_shaff_in_charge\": \"INTEGER\",\n \"HH_ID\": \"INTEGER\",\n \"Month\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Address\": \"STRING\",\n \"Open_Year\": \"STRING\",\n \"Score\": \"FLOAT\",\n \"Num_of_staff\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"HappyHourMember\": {\n \"properties\": {\n \"HH_ID\": \"INTEGER\",\n \"Total_amount\": \"FLOAT\",\n \"Member_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHour\",\n \"type\": \"HELD_AT\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"HappyHourMember\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Find the purchase time, age and address of each member, and show the results in the order of purchase time."}, {"role": "assistant", "content": "MATCH (m:Member)\\nRETURN m.Time_of_purchase, m.Age, m.Address\\nORDER BY m.Time_of_purchase"}]} {"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 with the highest total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.url AS StreamURL\\nORDER BY s.total_view_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": "List the top 5 movies that have been produced by a specific company, e.g., 'Pixar Animation Studios'."}, {"role": "assistant", "content": "MATCH (company:ProductionCompany {name: 'Pixar Animation Studios'})-[:PRODUCED_BY]-(movie:Movie)\\nRETURN movie.title, movie.average_vote\\nORDER BY movie.average_vote DESC\\nLIMIT 5"}]} {"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 all distinct countries where singers above age 20 are from?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Age > 20\\nRETURN DISTINCT singer.Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the names of buildings that have no company office."}, {"role": "assistant", "content": "MATCH (b:Building)\\nWHERE NOT EXISTS((b)<-[:LOCATED_IN]-(:Company))\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Topic where label or label contains Optical Imaging and Signal Processing_11!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label CONTAINS 'Optical Imaging and Signal Processing_11'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Topic)\\nWHERE m.label CONTAINS 'Optical Imaging and Signal Processing_11'\\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 movies with a tagline containing 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 \"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": "What are the properties of Journal that is PUBLISHED_IN, with meta equal to 213, connected to Article that has article_id equal to 1008?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '213'}]->(m:Journal)\\nWHERE n.article_id = '1008'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the name and description of the role played by the employee named Ebba."}, {"role": "assistant", "content": "MATCH (e:Employee {Employee_Name: \"Ebba\"})-[:ASSIGNS]->(r:Role)\\nRETURN r.Role_Name, r.Role_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 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 AS keyword, count(*) AS frequency\\nORDER BY frequency 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 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 (n:Article) -[wr:WRITTEN_BY]->(m)\\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'\\nRETURN m.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": "Identify characters whose pagerank is exactly 0.15000000000000002."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.pagerank = 0.15000000000000002\\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": "Which users have written a review for 'Ninja Mike's'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: \"Ninja Mike's\"})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN u.name AS userName"}]} {"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 from where the most tweets originate?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nWHERE u.location IS NOT NULL\\nRETURN u.location AS Location, count(t) AS TweetCount\\nORDER BY TweetCount 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 maximum RAM capacity of types available in DataCenter DC1?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(:Rack)-[:HOLDS]->(:Machine)-[:TYPE]->(t:Type)\\nRETURN MAX(t.ram) AS maxRamCapacity"}]} {"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 JNMP 4/2002 (Letter)!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'JNMP 4/2002 (Letter)'})-[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 }\n}"}, {"role": "user", "content": "Find 8 Journal that are missing the journal_id!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id IS NULL\\nRETURN n\\nLIMIT 8"}]} {"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 6, skip the first 2 records and return the next 2 records of doi_id!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id STARTS WITH '6'\\nWITH n.doi_id AS doi_id SKIP 2\\nLIMIT 2\\nRETURN doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Machine\": {\n \"properties\": {\n \"Making_Year\": \"INTEGER\",\n \"Machine_ID\": \"INTEGER\",\n \"value_points\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"quality_rank\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Machine_series\": \"STRING\"\n }\n },\n \"RepairAssignment\": {\n \"properties\": {\n \"Machine_ID\": \"INTEGER\",\n \"technician_id\": \"INTEGER\",\n \"repair_ID\": \"INTEGER\"\n }\n },\n \"Technician\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"technician_id\": \"FLOAT\",\n \"Team\": \"STRING\",\n \"Starting_Year\": \"FLOAT\"\n }\n },\n \"Repair\": {\n \"properties\": {\n \"Notes\": \"STRING\",\n \"Launch_Date\": \"STRING\",\n \"name\": \"STRING\",\n \"repair_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Technician\"\n },\n {\n \"from\": \"RepairAssignment\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Repair\"\n }\n ]\n}"}, {"role": "user", "content": "Please show the team that has the most number of technicians."}, {"role": "assistant", "content": "MATCH (t:Technician)\\nWITH t.Team AS Team, count(*) AS Count\\nRETURN Team\\nORDER BY Count 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": "Find all characters that have 'INTERACTS2' relationship with a weight above 50."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS2]->(:Character)\\nWHERE r.weight > 50\\nRETURN 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": "What are the first 3 adult videos not produced in any country listed?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE NOT EXISTS { (a)-[:PRODUCED_IN_COUNTRY]->(:Country) }\\nRETURN a.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Keyword where name is log-balanced and Article, with article_id equal 1056, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{name:'log-balanced'})-[*]-(e:Article{article_id:'1056'}))\\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 is the average IMDb rating of movies with a runtime under 90 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 90\\nRETURN avg(m.imdbRating) AS averageImdbRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 been tagged with the keyword 'explosive'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'explosive'})\\nRETURN m.title"}]} {"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}"}, {"role": "user", "content": "Fetch eight samples of the comments of the Article and the first_name for Author!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Author)\\nRETURN n.comments, m.first_name\\nLIMIT 8"}]} {"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 top 3 officers with the most 'officer_of' relationships to entities that have a 'status' of 'Changed agent'."}, {"role": "assistant", "content": "MATCH (o:Officer)-[r:officer_of]->(e:Entity)\\nWHERE e.status = 'Changed agent'\\nWITH o, count(*) AS relationshipCount\\nORDER BY relationshipCount DESC\\nLIMIT 3\\nRETURN o.name, relationshipCount"}]} {"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 have a beneficiary bank in 'United Kingdom' and an amount greater than 200000?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.amount > 200000\\nRETURN count(f) AS number_of_filings"}]} {"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 f6bcab8e721fbec0f293fee49d73c9c4, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[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 \"last_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where last_name is Leoni and Topic, for which cluster equals 6?"}, {"role": "assistant", "content": "MATCH p=(a:Author{last_name:'Leoni'})-[*]->(d:Topic{cluster:'6'})\\nRETURN count(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": "List the top 5 products that have been discontinued."}, {"role": "assistant", "content": "MATCH (p:Product {discontinued: true})\\nRETURN p.productName, p.productID\\nORDER BY p.productID\\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 with a release date in December."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE date(m.release_date).month = 12\\nRETURN m.title"}]} {"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 cond-mat.soft!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cond-mat.soft'})-[r]->()\\nRETURN 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 name of the entity that benefited from the filing with sar_id \"3297\"?"}, {"role": "assistant", "content": "MATCH (f:Filing {sar_id: \"3297\"})-[:BENEFITS]->(e:Entity)\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "When was the document named \"Marry CV\" stored? Give me the date."}, {"role": "assistant", "content": "MATCH (d:AllDocument)\\nWHERE d.Document_Name = \"Marry CV\"\\nRETURN d.Date_Stored"}]} {"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 in the month of May."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE date(s.createdAt).month = 5\\nWITH s\\nMATCH (s)-[:HAS_TEAM]->(t:Team)\\nRETURN DISTINCT 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": "What are the top 5 reviewed movies by summary 'An amazing journey'?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary = 'An amazing journey'\\nRETURN m.title, count(r) AS reviews\\nORDER BY reviews 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 top 3 countries with the most filings as a beneficiary in 2013."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.begin.year = 2013\\nRETURN c.name AS Country, count(f) AS Filings\\nORDER BY Filings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of storms in which at least 1 person died."}, {"role": "assistant", "content": "MATCH (s:Storm)\\nWHERE s.Number_Deaths > 0\\nWITH count(s) as count\\nRETURN count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"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 first_name is Alexander and DOI, for which doi_id is 57aa19619324dcd39039c52e67002af3?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Alexander'}), (b:DOI{doi_id:'57aa19619324dcd39039c52e67002af3'})\\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 number of filings filed by each entity, sorted in descending order of the number of filings?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, count(f) AS numberOfFilings\\nRETURN e.name AS entityName, numberOfFilings\\nORDER BY numberOfFilings DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.document_status_code = \"done\" AND d.document_type_code = \"Paper\"\\nWITH d\\nMATCH (r:RefShippingAgent)\\nWHERE r.shipping_agent_name = \"USPS\" AND d.shipping_agent_code = r.shipping_agent_code\\nRETURN DISTINCT d.document_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Categories and DOI, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*]-(n)-[*]-(b:DOI)\\nRETURN labels(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 are the dependencies of the application \"crm\"?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'crm'})-[:DEPENDS_ON]->(dependency)\\nRETURN dependency.name AS dependency_name"}]} {"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 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 263-281 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 = '263-281'\\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 \"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.screen_name, u.betweenness"}]} {"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": "How many paths are there between Keyword where key_id is 6ded85146e3dbfb1bb866831b8948f5b and Topic, for which label equals Mathematics_6?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[*]->(d:Topic{label:'Mathematics_6'})\\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": "List the first 5 videos that have been translated into the language 'Azərbaycan'."}, {"role": "assistant", "content": "MATCH (v:Video)-[:SPOKEN_IN_LANGUAGE]->(l:Language {name: 'Azərbaycan'})\\nRETURN v\\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": "What are the screen names of the top 3 users who have posted the most tweets?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nWITH u, count(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3\\nRETURN u.screen_name AS screen_name, tweet_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers."}, {"role": "assistant", "content": "MATCH (s:Station)\\nWHERE s.Number_of_Platforms >= 15 AND s.Total_Passengers > 25\\nRETURN DISTINCT s.Location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {}\n },\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Keyword and Categories!"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r1]-(n)-[r2]->(d:Categories)\\nRETURN labels(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": "Identify the top 5 applications by PID that depend on the service 'java'."}, {"role": "assistant", "content": "MATCH (app:Application)-[:DEPENDS_ON]->(serv:Service {name: 'java'})\\nRETURN app.name, app.pid\\nORDER BY app.pid 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 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 ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the average number of working horses of farms with more than 5000 total number of horses?"}, {"role": "assistant", "content": "MATCH (f:Farm)\\nWHERE f.Total_Horses > 5000\\nRETURN avg(f.Working_Horses)"}]} {"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 f.begin_date_format =~ '.*-01-.*' OR f.begin_date_format =~ '.*-02-.*' OR f.begin_date_format =~ '.*-03-.*' OR f.begin_date_format =~ '.*-04-.*' OR f.begin_date_format =~ '.*-05-.*' OR f.begin_date_format =~ '.*-06-.*'\\nRETURN c.name AS country, COUNT(f) AS filings_count\\nORDER BY filings_count 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 starts with Cha!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name STARTS WITH 'Cha'\\nRETURN n"}]} {"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": "How many paths are there between Keyword where key_id is 5d6533e2a77e3daabc184ee8f2441597 and Journal, for which name equals Math. Ann?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[*]->(d:Journal{name:'Math. Ann'})\\nRETURN count(p)"}]} {"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": "Fetch eight samples of the author_id of the Author and the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:DOI)\\nRETURN n.author_id, m.doi_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What are the codes of the locations with at least three documents?"}, {"role": "assistant", "content": "MATCH (l:RefLocation)<-[:CONTAINS]-(d:DocumentLocation)\\nWITH l.Location_Code as location_code, count(d) as cnt\\nWHERE cnt >= 3\\nRETURN location_code"}]} {"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 by the number of movies directed."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nRETURN d.name AS director, count(m) AS moviesDirected\\nORDER BY moviesDirected 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 country codes for entities that are registered in Samoa?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = \"Samoa\"\\nRETURN e.country_codes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the document type name for the document with name \"How to read a book\"?"}, {"role": "assistant", "content": "MATCH (a:AllDocument)-[r*]->(b:RefDocumentType)\\nWHERE a.Document_Name = \"How to read a book\"\\nRETURN b.Document_Type_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": "What are the top 5 users who interacted with others having a color '#FF4500'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:INTERACTED]->(other:User {color: '#FF4500'})\\nRETURN u.label, count{(u)-[:INTERACTED]->(other)} AS interactions\\nORDER BY interactions DESC\\nLIMIT 5"}]} {"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": "Find nodes that are at the end of a path starting at Article where article_id is 1048 and traversing through Author with first_name Amnon!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1048'})-[*]->(d:Author{first_name:'Amnon'})-[*]->(n)\\nRETURN n"}]} {"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 SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint\n No. 73!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'SFB 478 Geometrische Stukturen in der Mathematik, Muenster; Preprint No. 73'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 5 most recent questions asked by users with a reputation under 1000?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation < 1000\\nRETURN q\\nORDER BY q.createdAt DESC\\nLIMIT 5"}]} {"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": "\"What are the top five categories based on the number of businesses in each category?\""}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWITH c.name AS CategoryName, COUNT(b) AS NumberOfBusinesses\\nORDER BY NumberOfBusinesses DESC\\nLIMIT 5\\nRETURN CategoryName, NumberOfBusinesses"}]} {"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 2016-11-23, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2016-11-23'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Adult\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 keywords\""}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWITH m, COUNT(k) AS keyword_count\\nORDER BY keyword_count DESC\\nLIMIT 1\\nRETURN m.title AS movie_title, keyword_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 first three actors born after 1970 who acted in a movie released before 1990?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE p.born > 1970 AND m.released < 1990\\nRETURN p.name AS actor_name, p.born AS birth_year, m.title AS movie_title, m.released AS release_year\\nORDER BY p.born\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Gymnast\": {\n \"properties\": {\n \"Pommel_Horse_Points\": \"FLOAT\",\n \"Rings_Points\": \"FLOAT\",\n \"Floor_Exercise_Points\": \"FLOAT\",\n \"Gymnast_ID\": \"INTEGER\",\n \"Vault_Points\": \"FLOAT\",\n \"Total_Points\": \"FLOAT\",\n \"Parallel_Bars_Points\": \"FLOAT\",\n \"Horizontal_Bar_Points\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Hometown\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the total points of gymnasts in descending order."}, {"role": "assistant", "content": "MATCH (g:Gymnast)\\nRETURN g.Total_Points\\nORDER BY g.Total_Points DESC"}]} {"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": "Return the key_id for Keyword combined with the article_id for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.key_id AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.article_id AS Records"}]} {"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 log-balanced!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='log-balanced'\\nRETURN m.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": "Which department owns the 1p Short Socks?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: '1p Short Socks'})-[:FROM_DEPARTMENT]->(d:Department)\\nRETURN d"}]} {"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 names, countries, and ages for every singer in descending order of age?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.name,singer.country,singer.age\\nORDER BY singer.age DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CatalogContent\": {\n \"properties\": {\n \"catalog_entry_id\": \"INTEGER\",\n \"width\": \"STRING\",\n \"parent_entry_id\": \"INTEGER\",\n \"price_in_pounds\": \"FLOAT\",\n \"next_entry_id\": \"INTEGER\",\n \"product_stock_number\": \"STRING\",\n \"previous_entry_id\": \"INTEGER\",\n \"height\": \"STRING\",\n \"catalog_entry_name\": \"STRING\",\n \"catalog_level_number\": \"INTEGER\",\n \"length\": \"STRING\",\n \"price_in_euros\": \"FLOAT\",\n \"capacity\": \"STRING\",\n \"price_in_dollars\": \"FLOAT\"\n }\n },\n \"CatalogStructure\": {\n \"properties\": {\n \"catalog_level_number\": \"INTEGER\",\n \"catalog_level_name\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"CatalogContentsAdditionalAttribute\": {\n \"properties\": {\n \"attribute_value\": \"STRING\",\n \"catalog_entry_id\": \"INTEGER\",\n \"catalog_level_number\": \"INTEGER\",\n \"attribute_id\": \"INTEGER\"\n }\n },\n \"Catalog\": {\n \"properties\": {\n \"catalog_name\": \"STRING\",\n \"date_of_publication\": \"STRING\",\n \"catalog_publisher\": \"STRING\",\n \"date_of_latest_revision\": \"STRING\",\n \"catalog_id\": \"INTEGER\"\n }\n },\n \"AttributeDefinition\": {\n \"properties\": {\n \"attribute_data_type\": \"STRING\",\n \"attribute_id\": \"INTEGER\",\n \"attribute_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogContent\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"PART_OF\",\n \"to\": \"CatalogStructure\"\n },\n {\n \"from\": \"CatalogContentsAdditionalAttribute\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"CatalogContent\"\n },\n {\n \"from\": \"CatalogStructure\",\n \"type\": \"CONTAINS\",\n \"to\": \"Catalog\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and capacity of products with price greater than 700 (in USD)."}, {"role": "assistant", "content": "MATCH (cc:CatalogContent)\\nWHERE cc.price_in_dollars > 700\\nRETURN cc.catalog_entry_name, cc.capacity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "What is the most common reason for appointments among patients with the 'Diabetes' disease?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_CHRONIC_DISEASE]->(d:Disease {name: 'Diabetes'}), (p)-[:HAS_APPOINTMENT]->(a:Appointment)\\nWITH a.reason AS Reason, COUNT(*) AS Frequency\\nORDER BY Frequency DESC\\nLIMIT 1\\nRETURN Reason"}]} {"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 involve the highest amounts where the beneficiary bank's country is 'United Kingdom' and the originator bank's country is 'Singapore'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom' AND f.originator_bank_country = 'Singapore'\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 0ef3b1eb742dfb0bc64bdfab8ed422f1 and Article, for which title is Failure of Brown representability in derived categories?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'}), (b:Article{title:'Failure of Brown representability in derived categories'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the key_id of the Keyword that is not related to the Author with the affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Author {affiliation: 'unspecified'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.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": "Find all products that have been ordered in the last quarter of any year."}, {"role": "assistant", "content": "MATCH (p:Product)-[:ORDERS]->(o:Order)\\nWHERE o.orderDate >= date({month: 10, day: 1}) AND o.orderDate <= date({month: 12, day: 31})\\nRETURN 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": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 537-560 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 = '537-560'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count"}]} {"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 1006!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1013 OR n.article_id < 1006\\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": "Find all movies that have a plot mentioning 'hero'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'hero'\\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 names of the top 3 categories based on the number of suppliers providing products to them?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS categoryName, COUNT(DISTINCT s.supplierID) AS supplierCount\\nORDER BY supplierCount DESC\\nLIMIT 3\\nRETURN categoryName, supplierCount"}]} {"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 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH path=(:Keyword {key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-->()\\nRETURN path"}]} {"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 born before 1950 have directed a movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born < 1950\\nRETURN count(DISTINCT 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 3 movies that have a specific keyword 'adventure' and are in the 'Released' status."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'adventure'})\\nWHERE m.status = 'Released'\\nRETURN m\\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 top 5 hashtags used in tweets that 'Neo4j' has retweeted."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)-[:TAGS]->(hashtag:Hashtag)\\nRETURN hashtag.name AS hashtag, COUNT(*) AS usage_count\\nORDER BY usage_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of key_id and name from Keyword where key_id does not start with 1!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE NOT n.key_id STARTS WITH '1'\\nRETURN DISTINCT n.key_id AS key_id, 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": "What are the names of 3 businesses categorized as 'Beer'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Beer'})\\nRETURN b.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": "What is the average star rating given by users from Missoula?"}, {"role": "assistant", "content": "MATCH (u:User {city: 'Missoula'})-[:WROTE]->(r:Review)\\nRETURN avg(r.stars) AS 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": "List 3 movies directed by 'Anthony Stacchi'."}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Anthony Stacchi'})-[:DIRECTED]->(m:Movie)\\nRETURN m\\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 properties of the streams where '9linda' is a VIP?"}, {"role": "assistant", "content": "MATCH (u:User {name: '9linda'})-[:VIP]->(s:Stream)\\nRETURN s.id, s.createdAt, s.description, s.url, s.name, s.followers, s.total_view_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 categories have the fewest products with units on order?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitsOnOrder IS NOT NULL\\nWITH c, count(p) AS productCount\\nORDER BY productCount ASC\\nLIMIT 3\\nRETURN c.categoryName, 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 highest rating given to any movie by any person?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(:Movie)\\nRETURN max(r.rating) AS highest_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of the storms that affected Denmark?"}, {"role": "assistant", "content": "MATCH (s:Storm)-[:AFFECTS]->(r:Region)\\nWHERE r.Region_name = 'Denmark'\\nRETURN s.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": "Find the businesses with the highest average star rating for reviews written in 2016."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date.year = 2016\\nWITH b, avg(r.stars) AS average_rating\\nORDER BY average_rating DESC\\nRETURN b.name, average_rating\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Browser\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"market_share\": \"FLOAT\"\n }\n },\n \"WebClientAccelerator\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Operating_system\": \"STRING\",\n \"Connection\": \"STRING\",\n \"Client\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n },\n {\n \"from\": \"Browser\",\n \"type\": \"USES\",\n \"to\": \"WebClientAccelerator\"\n }\n ],\n \"relationshipProperties\": {\n \"USES\": {\n \"compatible_since_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?"}, {"role": "assistant", "content": "MATCH (w:WebClientAccelerator)\\nWHERE w.Connection <> 'Broadband'\\nRETURN w.name, w.Operating_system"}]} {"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 names of employees who never won any award in the evaluation."}, {"role": "assistant", "content": "MATCH (employee:employee)\\nWHERE NOT (employee)-[]-(:evaluation) \\nRETURN employee.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 3 movies that were released before the year 2000 and have an 'original_language' of 'en'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWHERE m.release_date < date('2000-01-01') AND l.id = 'en'\\nRETURN m.title, m.release_date, m.average_vote\\nORDER BY m.average_vote DESC\\nLIMIT 3"}]} {"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 13c7b3c4f69c510e94c671c881522bac!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id <> '13c7b3c4f69c510e94c671c881522bac'\\nRETURN DISTINCT n.first_name AS first_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 \"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 name in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is latex, 38 pages, typos corrected and PUBLISHED_IN has meta on 217!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '217'}]->(m)\\nWHERE n.comments='latex, 38 pages, typos corrected'\\nRETURN m.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 company names of customers from Germany?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.country = 'Germany'\\nRETURN c.companyName"}]} {"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 'size' of Users with a 'label' that contains 'social'?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.label CONTAINS 'social'\\nWITH avg(u.size) AS average_size\\nRETURN average_size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Which employees have the role with code \"HR\"? Find their names."}, {"role": "assistant", "content": "MATCH (e:Employee {Role_Code: \"HR\"})\\nRETURN e.Employee_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 3 streams with the most varied language settings."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, count(distinct l) as numLanguages\\nORDER BY numLanguages DESC\\nLIMIT 3\\nRETURN s.name as streamName, numLanguages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 directed by Steven Spielberg?"}, {"role": "assistant", "content": "MATCH (d:Person {name: 'Steven Spielberg'})-[:CREW_FOR {job: 'Director'}]->(m:Movie)\\nWITH avg(m.runtime) AS average_runtime\\nRETURN average_runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Company\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Company_ID\": \"FLOAT\",\n \"Profits_in_Billion\": \"FLOAT\",\n \"Headquarters\": \"STRING\",\n \"Assets_in_Billion\": \"FLOAT\",\n \"Sales_in_Billion\": \"FLOAT\",\n \"Industry\": \"STRING\",\n \"Market_Value_in_Billion\": \"FLOAT\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Graduation_College\": \"STRING\",\n \"Nationality\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Company\"\n }\n ],\n \"relationshipProperties\": {\n \"WORKS_AT\": {\n \"Year_working\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the names of people that are not employed by any company"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE NOT (p)-[:WORKS_AT]-()\\nRETURN p.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 is the total revenue generated by products in the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Seafood'})<-[:PART_OF]-(p:Product)\\nWITH c, sum(p.unitsInStock * p.unitPrice) AS totalRevenue\\nRETURN totalRevenue"}]} {"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 number of countries involved?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, size(m.countries) AS countryCount\\nORDER BY countryCount DESC\\nLIMIT 5\\nRETURN m.title AS title, countryCount"}]} {"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 (r:Rack {name: 'DC1-RCK-2-3'})-[:HOLDS]->(s:Switch)\\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 adult videos have the most provocative poster paths?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nRETURN a.title, a.poster_path\\nORDER BY a.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1013 and Categories, for which specifications equals math.AT?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1013'})-[*]->(d:Categories{specifications:'math.AT'})\\nRETURN count(p)"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of courses with 1 credit?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nWHERE c.Credits = 1\\nRETURN c.CName"}]} {"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 highest 'pid' value used by any application in the database?"}, {"role": "assistant", "content": "MATCH (a:Application)\\nRETURN max(a.pid) AS max_pid"}]} {"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)\\nWITH s, count{(s)-[:CHATTER]->()} AS chatterCount\\nORDER BY chatterCount DESC\\nLIMIT 3\\nRETURN s.name AS StreamName, chatterCount"}]} {"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 and IPs of interfaces that connect to zone 1's network?"}, {"role": "assistant", "content": "MATCH (zone:Zone {zone: 1})-[:ROUTES]->(interface:Interface)\\nRETURN interface.ip AS ip, interface.name AS 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 that have a revenue greater than their budget."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > m.budget\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Which papers have the substring \"ML\" in their titles? Return the titles of the papers."}, {"role": "assistant", "content": "MATCH (p:Paper)\\nWHERE p.title CONTAINS \"ML\"\\nRETURN p.title"}]} {"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 that are directed by Tom Hanks have \\\"love\\\" in the tagline?\""}, {"role": "assistant", "content": "MATCH (:Person {name: \"Tom Hanks\"})-[:DIRECTED]->(m:Movie)\\nWHERE m.tagline CONTAINS \"love\"\\nRETURN COUNT(m) AS MoviesWithLoveInTagline"}]} {"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": "How many users rated Forrest Gump and what is the average rating?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie {title: \"Forrest Gump\"})\\nRETURN COUNT(u) AS numberOfUsers, AVG(r.rating) AS averageRating"}]} {"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": "What are 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 \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "How many institutions are there?"}, {"role": "assistant", "content": "MATCH (n:Inst)\\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": "Find businesses that have been reviewed by users whose name starts with 'J'."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE u.name STARTS WITH 'J'\\nRETURN b.name AS businessName, b.address AS businessAddress, b.city AS businessCity, b.state AS businessState"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Topic for which cluster is 8!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'8'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"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 57!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id =~'57.*'\\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 update_date for those UpdateDates where update_date is 2015-06-26 and the year of the update_date is 2016!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2015-06-26' 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 \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the article_id from Article where title is not Summation and transformation formulas for elliptic hypergeometric series!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN DISTINCT n.article_id AS article_id"}]} {"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 701102 and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'701102'})-[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 \"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 Journal of Mathematical Logic!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"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 10000 followers?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(u:User)\\nWHERE u.followers > 10000\\nRETURN u.screen_name, u.followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author where first_name is Randall!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Randall'\\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 unit price of products ordered by 'Ernst Handel'?"}, {"role": "assistant", "content": "MATCH (c:Customer {companyName: 'Ernst Handel'})-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWITH avg(toFloat(p.unitPrice)) AS averageUnitPrice\\nRETURN averageUnitPrice"}]} {"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 written by the user named 'Will' for the business 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {name: 'Missoula Public Library'})\\nRETURN r.text"}]} {"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 44 pages!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = '44 pages'\\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 names of businesses that have received reviews from more than one user."}, {"role": "assistant", "content": "MATCH (user:User)-[:WROTE]->(review:Review)-[:REVIEWS]->(business:Business)\\nWITH business, count(DISTINCT user) AS numUsers\\nWHERE numUsers > 1\\nRETURN business.name"}]} {"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 6ecd77a291d325cb3e01160880d88c69 and UpdateDate, for which update_date equals 2017-07-11?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'})-[*]->(d:UpdateDate{update_date:'2017-07-11'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between 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 Topic, with cluster equal 1, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((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'})-[*]-(e:Topic{cluster:'1'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Journal where name is Topology, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Topology'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"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 in state 'MT'?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.state = 'MT'\\nRETURN b.address"}]} {"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 both acted in and directed the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN p.name AS person_name, m.title AS movie_title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of DOI that have the name recorded!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name IS NOT NULL\\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": "Name the top 5 movies with the most detailed overviews (measured by word count)."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.overview IS NOT NULL\\nRETURN m.title, size(split(m.overview, ' ')) AS word_count\\nORDER BY word_count 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 top 3 countries based on the number of beneficiary banks they have."}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)<-[:BENEFITS]-(f:Filing)\\nWITH c.name AS country, COUNT(DISTINCT e) AS beneficiary_bank_count\\nORDER BY beneficiary_bank_count DESC\\nLIMIT 3\\nRETURN country, beneficiary_bank_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"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 name is tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water- and traversing through Article with article_id 1063!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[*]->(d:Article{article_id:'1063'})-[*]->(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 \"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 222 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 = '222'\\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 \"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 longest movies by runtime?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime IS NOT NULL\\nRETURN m\\nORDER BY m.runtime 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 characters with the lowest `book1PageRank` who interact with characters having a `community` value of 759."}, {"role": "assistant", "content": "MATCH (c1:Character)\\nWHERE c1.community = 759\\nMATCH (c1)-[:INTERACTS1]-(c2:Character)\\nWITH c2\\nORDER BY c2.book1PageRank\\nLIMIT 1\\nRETURN c2.name"}]} {"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": "Return the report_no for Report combined with the journal_id for Journal!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:Journal)\\nRETURN m.journal_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": "How many reviews does the 'Neo4j' business have?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Neo4j'})-[:REVIEWS]-(r:Review)\\nRETURN count(r) AS NumberOfReviews"}]} {"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 struck_off year for all Entities registered in Samoa?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction = 'SAM' AND e.struck_off_date IS NOT NULL\\nWITH e, toInteger(right(e.struck_off_date, 4)) AS struck_off_year\\nRETURN avg(struck_off_year)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal for which name starts with Geo!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name STARTS WITH 'Geo'\\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 process listens on the highest port number in the schema?"}, {"role": "assistant", "content": "MATCH (p:Process)-[:LISTENS]->(port:Port)\\nRETURN p.name AS process_name, port.port AS port_number\\nORDER BY port_number DESC\\nLIMIT 1"}]} {"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 fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Article where article_id is 1013 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1013'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the official name and status of the city with the most residents?"}, {"role": "assistant", "content": "MATCH (City:City)\\nRETURN City.Official_Name, City.Status\\nORDER BY City.Population 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 first 5 streams that play the game 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nRETURN s.name AS stream_name, s.url AS stream_url\\nLIMIT 5"}]} {"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 Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Chow groups of weighted hypersurfaces'\\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 SISSA: 39/99/FM/GEO!"}, {"role": "assistant", "content": "39/99/FM/GEO!\nA: MATCH (n:Report)\\nWHERE n.report_no = 'SISSA: 39/99/FM/GEO'\\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 the sources used in tweets that mention more than 3 users."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User)\\nWITH t, size(collect(u)) AS mentioned_users\\nWHERE mentioned_users > 3\\nMATCH (t)-[:USING]->(s:Source)\\nRETURN DISTINCT s.name AS source_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the abstract for Article combined with the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.abstract AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.article_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": "List the movies with the summary \"A solid romp\"."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE r.summary = \"A solid romp\"\\nRETURN m.title"}]} {"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 2!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 10 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": "What is the average number of votes for movies released in the same year as \"The Matrix Revolutions\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"The Matrix Revolutions\"})\\nWITH m.released AS releaseYear\\nMATCH (movies:Movie {released: releaseYear})\\nWITH avg(movies.votes) AS averageVotes\\nRETURN averageVotes"}]} {"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 Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description = 'Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.'\\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": "List the names of all processes that have a dependency on the same service as the application 'logstash'."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'logstash'})-[:DEPENDS_ON]->(service:Service)\\nWITH service\\nMATCH (process:Process)-[:DEPENDS_ON]->(service)\\nRETURN DISTINCT process.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": "Can you list all officers with a 'probably_same_officer_as' relationship?"}, {"role": "assistant", "content": "MATCH (o1:Officer)-[:same_id_as]->(o2:Officer)\\nRETURN o1, o2"}]} {"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 a community number exactly 795."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 795\\nRETURN c.name\\nORDER BY c.pagerank DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\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 article_id is 601494!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.article_id='601494'\\nRETURN m.category_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 5 movies have the highest average user rating? Limit to movies rated by at least 10 users."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-(:User)\\nWITH m, avg(r.rating) AS avgRating, count(r) AS numRatings\\nWHERE numRatings >= 10\\nRETURN m.title AS movieTitle, avgRating\\nORDER BY avgRating 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": "Which 3 types of machines are held in the racks of zone 2?"}, {"role": "assistant", "content": "MATCH (z:Zone {zone: 2})-[:ROUTES]->(:Interface)<-[:ROUTES]-(:Switch)<-[:HOLDS]-(r:Rack)-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN DISTINCT t.type AS machineType\\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 10 countries with the highest total amount received by their beneficiary entities."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c, sum(f.amount) AS totalAmount\\nORDER BY totalAmount DESC\\nRETURN c.name AS countryName, totalAmount\\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": "Which reviews are for businesses in the same state as 'Zootown Brew'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Zootown Brew'})-[:IN_CATEGORY]->(c:Category)<-[:IN_CATEGORY]-(otherBusiness:Business {state: b.state})\\nMATCH (review:Review)-[:REVIEWS]->(otherBusiness)\\nRETURN review.text, review.date, review.stars, otherBusiness.name"}]} {"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 logarithmic barrier penalty!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name = 'logarithmic barrier penalty'\\nRETURN n"}]} {"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 is 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article {comments:'21 pages, AMS-LaTeX'})\\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": "What are the names of characters who have an INTERACTS2 book value of 2 and a weight greater than 50?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS2]->(:Character)\\nWHERE r.book = 2 AND r.weight > 50\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_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 Author where author_id is ee24bab93b9531431f442226dd453745 and share a common property with Article, for which article_id equals 1048?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'ee24bab93b9531431f442226dd453745'})-[r]->(n), (d:Article{article_id:'1048'})\\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": "List the names of the top 3 games most frequently played by streams with over 500,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.followers > 500000\\nRETURN g.name, count(s) AS stream_count\\nORDER BY stream_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 is the average discount given across all orders?"}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(:Product)\\nRETURN avg(toFloat(o.discount)) AS averageDiscount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which classrooms are used by grade 4?"}, {"role": "assistant", "content": "MATCH (l:List)\\nWHERE l.Grade = 4\\nRETURN DISTINCT l.Classroom"}]} {"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 software names that depend on 'webserver'?"}, {"role": "assistant", "content": "MATCH (s:Software)-[:DEPENDS_ON]->(:Application {name: 'webserver'})\\nRETURN s.name AS software_name\\nORDER BY s.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": "Name the top 5 most frequently used keywords in videos."}, {"role": "assistant", "content": "MATCH (v:Video)-[:HAS_KEYWORD]->(k:Keyword)\\nWITH k, COUNT(v) AS video_count\\nORDER BY video_count DESC\\nLIMIT 5\\nRETURN k.name AS keyword, video_count"}]} {"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 where affiliation is Ohio State University, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{affiliation:'Ohio State University'})-[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 \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date when the document \"Marry CV\" was stored?"}, {"role": "assistant", "content": "MATCH (d:AllDocument {Document_Name: \"Marry CV\"})\\nRETURN d.Date_Stored"}]} {"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 4, 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 '4'\\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 \"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 1015, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1015'})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"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 Topology_5!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Topology_5'})-[*]->(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": "Which characters have a book1BetweennessCentrality of zero?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality = 0.0\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of the storms that affected both the regions of Afghanistan and Albania?"}, {"role": "assistant", "content": "MATCH (r1:Region {Region_name: \"Afghanistan\"})<-[:affected_Region]-(s1:Storm)-[:AFFECTS]->(r2:Region {Region_name: \"Albania\"})\\nRETURN s1.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Paper\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"paperID\": \"INTEGER\"\n }\n },\n \"Authorship\": {\n \"properties\": {\n \"authOrder\": \"INTEGER\",\n \"authID\": \"INTEGER\",\n \"paperID\": \"INTEGER\",\n \"instID\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"lname\": \"STRING\",\n \"authID\": \"INTEGER\",\n \"fname\": \"STRING\"\n }\n },\n \"Inst\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"instID\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITES\",\n \"to\": \"Paper\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n },\n {\n \"from\": \"Authorship\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Inst\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of total papers."}, {"role": "assistant", "content": "MATCH (p:Paper)\\nRETURN count(p)"}]} {"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 Christensen!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name <> 'Christensen'\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"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 'HKG' country code?"}, {"role": "assistant", "content": "MATCH (e:Entity {country_codes: 'HKG'})\\nRETURN e"}]} {"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 people who have produced the most number of movies with their birth years."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nRETURN p.name, p.born, count(m) AS movies_produced\\nORDER BY movies_produced 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 first 3 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 g.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": "Which 3 businesses have reviews that mention both 'world' and 'leading'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'world' AND r.text CONTAINS 'leading'\\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 \"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 18 pages, latex2e with amsfonts. Final version, accepted for\n publication!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'18 pages, latex2e with amsfonts. Final version, accepted for publication'})-[*]->(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": "Find characters with a centrality above 0.5 and a book1BetweennessCentrality above 3000."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality > 0.5 AND c.book1BetweennessCentrality > 3000\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the description of document status code 'working'?"}, {"role": "assistant", "content": "MATCH (d:RefDocumentStatu {document_status_code:\"working\"})\\nRETURN d.document_status_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "List the total number of horses on farms in ascending order."}, {"role": "assistant", "content": "MATCH (f:Farm)\\nRETURN f.Total_Horses\\nORDER BY f.Total_Horses ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"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 made the least revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NOT NULL\\nRETURN m\\nORDER BY m.revenue ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"FarmCompetition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Competition_ID\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Host_city_ID\": \"INTEGER\",\n \"Hosts\": \"STRING\"\n }\n },\n \"Farm\": {\n \"properties\": {\n \"Total_Horses\": \"FLOAT\",\n \"Year\": \"INTEGER\",\n \"Farm_ID\": \"INTEGER\",\n \"Cows\": \"FLOAT\",\n \"Total_Cattle\": \"FLOAT\",\n \"Sheep_and_Goats\": \"FLOAT\",\n \"Working_Horses\": \"FLOAT\",\n \"Bulls\": \"FLOAT\",\n \"Pigs\": \"FLOAT\",\n \"Oxen\": \"FLOAT\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Status\": \"STRING\",\n \"City_ID\": \"INTEGER\",\n \"Area_km_2\": \"FLOAT\",\n \"Census_Ranking\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"Official_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n },\n {\n \"from\": \"Farm\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"FarmCompetition\"\n },\n {\n \"from\": \"FarmCompetition\",\n \"type\": \"TAKES_PLACE_IN\",\n \"to\": \"City\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATES_IN\": {\n \"Rank\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Find the official names of cities with population bigger than 1500 or smaller than 500."}, {"role": "assistant", "content": "MATCH (City:City)\\nWHERE City.Population > 1500 OR City.Population < 500\\nRETURN City.Official_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 logarithms or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name = 'logarithms' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS 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 3 users who have rated at least one movie in each genre available."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH u, collect(DISTINCT g.name) AS genresRated, count(DISTINCT g.name) AS genreCount\\nMATCH (g2:Genre)\\nWITH u, genresRated, genreCount, collect(DISTINCT g2.name) AS allGenres\\nWHERE genreCount = size(allGenres)\\nRETURN u.name AS userName, size(genresRated) AS genresRatedCount\\nORDER BY genresRatedCount DESC\\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 Jean-Francois, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.first_name = 'Jean-Francois'\\nRETURN properties(n) AS props, 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": "List all officers with the country code 'KOR'."}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWHERE o.country_codes = 'KOR'\\nRETURN o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Pilot\": \"STRING\",\n \"company_id\": \"INTEGER\",\n \"Altitude\": \"FLOAT\",\n \"Date\": \"STRING\",\n \"Vehicle_Flight_number\": \"STRING\",\n \"Velocity\": \"FLOAT\",\n \"airport_id\": \"INTEGER\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"IATA\": \"STRING\",\n \"id\": \"INTEGER\",\n \"ICAO\": \"STRING\",\n \"name\": \"STRING\",\n \"Country\": \"STRING\",\n \"City\": \"STRING\"\n }\n },\n \"OperateCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Principal_activities\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"LANDS_AT\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"OperateCompany\"\n }\n ]\n}"}, {"role": "user", "content": "which countries have more than 2 airports?"}, {"role": "assistant", "content": "MATCH (a:Airport)\\nWITH a.Country as country, count(*) as count\\nWHERE count > 2\\nRETURN country"}]} {"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 ordered by the date of their most recent review in descending order."}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWITH b, r\\nORDER BY r.date DESC\\nWITH b, collect(r) AS reviews\\nRETURN b.name, reviews[0].date AS mostRecentReviewDate\\nORDER BY mostRecentReviewDate 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": "What are the top 5 filings by amount that involve an originator bank from 'Australia'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country {name: 'Australia'})\\nRETURN f\\nORDER BY f.amount 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": "Find the streams that are moderated by users who have a total view count greater than 1 million."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE u.total_view_count > 1000000\\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": "List the questions asked by users with a reputation less than the average reputation of all users."}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH avg(u.reputation) AS averageReputation\\nMATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation < averageReputation\\nRETURN q.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SurgeryType\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Disease\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Allergy\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DiagnosisType\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Prescription\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"reason\": \"STRING\",\n \"date\": \"DATE_TIME\"\n }\n },\n \"Diagnosis\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Surgery\": {\n \"properties\": {\n \"date\": \"DATE_TIME\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n },\n \"Doctor\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"specialty\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Prescription\",\n \"type\": \"OF_MEDICATION\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Diagnosis\",\n \"type\": \"OF_TYPE\",\n \"to\": \"DiagnosisType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Surgery\",\n \"type\": \"OF_TYPE\",\n \"to\": \"SurgeryType\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_ALLERGY\",\n \"to\": \"Allergy\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_PRESCRIPTION\",\n \"to\": \"Prescription\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_CHRONIC_DISEASE\",\n \"to\": \"Disease\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAD_SURGERY\",\n \"to\": \"Surgery\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_APPOINTMENT\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_DIAGNOSIS\",\n \"to\": \"Diagnosis\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"HAS_DOCTOR\",\n \"to\": \"Doctor\"\n },\n {\n \"from\": \"Doctor\",\n \"type\": \"GAVE_PRESCRIPTION\",\n \"to\": \"Prescription\"\n }\n ],\n \"relationshipProperties\": {\n \"GAVE_DIAGNOSIS\": {\n \"on\": \"DATE_TIME\"\n },\n \"HAS_DOCTOR\": {\n \"since\": \"DATE_TIME\"\n },\n \"HAS_CHRONIC_DISEASE\": {\n \"since\": \"DATE_TIME\"\n },\n \"GAVE_PRESCRIPTION\": {\n \"on\": \"DATE_TIME\"\n }\n }\n}"}, {"role": "user", "content": "Which patients have had an appointment for a 'Follow-up' reason and also have a surgery history?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:HAS_APPOINTMENT]->(a:Appointment)\\nWHERE a.reason = 'Follow-up'\\nWITH p\\nMATCH (p)-[:HAD_SURGERY]->()\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Building\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Status\": \"STRING\",\n \"name\": \"STRING\",\n \"Stories\": \"INTEGER\",\n \"Height\": \"INTEGER\",\n \"City\": \"STRING\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Sales_billion\": \"FLOAT\",\n \"Market_Value_billion\": \"STRING\",\n \"Profits_billion\": \"FLOAT\",\n \"name\": \"STRING\",\n \"Headquarters\": \"STRING\",\n \"Industry\": \"STRING\",\n \"Assets_billion\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n },\n {\n \"from\": \"Company\",\n \"type\": \"LOCATED_IN\",\n \"to\": \"Building\"\n }\n ],\n \"relationshipProperties\": {\n \"LOCATED_IN\": {\n \"move_in_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the average profits of companies?"}, {"role": "assistant", "content": "MATCH (n:Company)\\nRETURN avg(n.Profits_billion) as averageProfitInBillions"}]} {"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 names and release years for all the songs of the youngest singer?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Song_Name,singer.Song_release_year\\nORDER BY singer.Age\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentDraft\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"draft_details\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"shipping_agent_code\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"document_status_code\": \"STRING\",\n \"receipt_number\": \"STRING\",\n \"receipt_date\": \"STRING\"\n }\n },\n \"RefShippingAgent\": {\n \"properties\": {\n \"shipping_agent_code\": \"STRING\",\n \"shipping_agent_description\": \"STRING\",\n \"shipping_agent_name\": \"STRING\"\n }\n },\n \"RefDocumentStatu\": {\n \"properties\": {\n \"document_status_description\": \"STRING\",\n \"document_status_code\": \"STRING\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"role_code\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_type_description\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"CirculationHistory\": {\n \"properties\": {\n \"draft_number\": \"INTEGER\",\n \"copy_number\": \"INTEGER\",\n \"document_id\": \"INTEGER\",\n \"employee_id\": \"INTEGER\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"\",\n \"to\": \"DocumentDraft\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"DocumentDraft\",\n \"type\": \"IS_A\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_SHIPPING_AGENT\",\n \"to\": \"RefShippingAgent\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STATUS\",\n \"to\": \"RefDocumentStatu\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"REFERENCES\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"IS_LISTED_IN\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"None\",\n \"to\": \"Role\"\n }\n ],\n \"relationshipProperties\": {\n \"IS_LISTED_IN\": {\n \"mailing_date\": \"STRING\"\n },\n \"\": {\n \"copy_number\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What document status codes do we have?"}, {"role": "assistant", "content": "MATCH (n:RefDocumentStatu)\\nRETURN n.document_status_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StoreDistrict\": {\n \"properties\": {\n \"District_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"max_page_size\": \"STRING\",\n \"pages_per_minute_color\": \"FLOAT\",\n \"dimensions\": \"STRING\",\n \"dpi\": \"FLOAT\",\n \"interface\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Number_of_product_category\": \"FLOAT\",\n \"Area_size\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Ranking\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"District\": {\n \"properties\": {\n \"District_name\": \"STRING\",\n \"City_Population\": \"FLOAT\",\n \"District_ID\": \"INTEGER\",\n \"City_Area\": \"FLOAT\",\n \"Headquartered_City\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"GOVERNS\",\n \"to\": \"Store\"\n },\n {\n \"from\": \"StoreDistrict\",\n \"type\": \"CONTAINS\",\n \"to\": \"District\"\n }\n ]\n}"}, {"role": "user", "content": "Which district has the least area?"}, {"role": "assistant", "content": "MATCH (d:District)\\nRETURN d.District_name\\nORDER BY d.City_Area ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Actor\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Duration\": \"STRING\",\n \"age\": \"INTEGER\",\n \"Actor_ID\": \"INTEGER\",\n \"Character\": \"STRING\"\n }\n },\n \"Musical\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Musical_ID\": \"INTEGER\",\n \"Nominee\": \"STRING\",\n \"Award\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"COSTARS_WITH\",\n \"to\": \"Actor\"\n }\n ]\n}"}, {"role": "user", "content": "Show the musical nominee with award \"Bob Fosse\" or \"Cleavant Derricks\"."}, {"role": "assistant", "content": "MATCH (m:Musical)\\nWHERE m.Award = \"Tony Award\" OR m.Award = \"Cleavant Derricks\"\\nRETURN m.Nominee"}]} {"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 most upvoted questions?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.upVotes 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": "Identify the top 5 characters based on the average of their centrality values across all books."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality IS NOT NULL AND exists {(c)-[:INTERACTS1]->()} AND exists {(c)-[:INTERACTS2]->()} AND exists {(c)-[:INTERACTS3]->()} AND exists {(c)-[:INTERACTS45]->()}\\nWITH c, (coalesce(c.book1PageRank, 0) + coalesce(c.book45PageRank, 0) + coalesce(c.pagerank, 0)) / 3 AS avgCentrality\\nRETURN c.name AS character, avgCentrality\\nORDER BY avgCentrality DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where last_name is Warnaar and Keyword, with name equal logarithms, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{last_name:'Warnaar'})-[*]-(e:Keyword{name:'logarithms'}))\\nRETURN nodes(p)"}]} {"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 for which name is discrete log problem, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.name = 'discrete log problem'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Journal for which journal_id is f762cb2c3b5bd7f0b3941598cfce8f15!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f762cb2c3b5bd7f0b3941598cfce8f15'})-[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": "List the top 5 movies that have been rated over 8.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote > 8.0\\nRETURN m.title, m.average_vote\\nORDER BY m.average_vote 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 first 3 filings where the beneficiary bank country is different from the originator bank country."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)-[:COUNTRY]->(oc:Country), (f:Filing)-[:BENEFITS]->(b:Entity)-[:COUNTRY]->(bc:Country)\\nWHERE o.country <> b.country\\nRETURN f.id, f.amount, f.originator_bank, f.beneficiary_bank\\nORDER BY f.id\\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 first 3 businesses located in 'MT'?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'MT'})\\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": "Show the top 3 streams with 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 \"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 have both high pagerank and high degree of centrality. Limit to top 5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.pagerank > 8.0 AND c.degree > 250.0\\nRETURN c.name, c.pagerank, c.degree\\nORDER BY c.pagerank DESC, c.degree 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 5 movies with a single-country language setting and the highest imdbRating?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE size(m.countries) = 1\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating 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 distinct properties of nodes that are 2 hops away from Keyword with key_id equal to d8ed805e2dd529e548ead28198edd980!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d8ed805e2dd529e548ead28198edd980'})-[*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": "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]->(:Entity)-[:COUNTRY]->(c:Country {name: \"United Kingdom\"})\\nWITH e, COUNT(f) AS transaction_count\\nORDER BY transaction_count DESC\\nLIMIT 5\\nRETURN e.name AS entity_name, transaction_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 first 3 movies with plots that involve a natural disaster?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'natural disaster'\\nRETURN m.title, m.plot\\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 profile image URL and follow 'Neo4j'? Show the first 3."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {name: 'Neo4j'})\\nWHERE u.profile_image_url IS NOT NULL\\nRETURN u\\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 languages that have been used as original languages in more than 10 movies."}, {"role": "assistant", "content": "MATCH (l:Language)<-[:ORIGINAL_LANGUAGE]-(m:Movie)\\nWITH l, count(m) AS movieCount\\nWHERE movieCount > 10\\nRETURN l.id, l.name\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"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": "Return the author_id for Author combined with the journal_id for Journal!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:Journal)\\nRETURN m.journal_id AS Records"}]} {"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 217, connected to Article that has title equal to Classification of Subsystems for Local Nets with Trivial Superselection\n Structure?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '217'}]->(m:Journal)\\nWHERE n.title = 'Classification of Subsystems for Local Nets with Trivial Superselection Structure'\\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": "Which movies 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 \"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.released STARTS WITH '1995'\\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 \"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 title is A New Cohomology Theory for Orbifold and PUBLISHED_IN has year on 2004!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2004'}]->(m)\\nWHERE n.title='A New Cohomology Theory for Orbifold'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Region\": {\n \"properties\": {\n \"Region_id\": \"INTEGER\",\n \"Region_name\": \"STRING\",\n \"Region_code\": \"STRING\"\n }\n },\n \"Storm\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Number_Deaths\": \"INTEGER\",\n \"Max_speed\": \"INTEGER\",\n \"Storm_ID\": \"INTEGER\",\n \"Damage_millions_USD\": \"FLOAT\",\n \"Dates_active\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Storm\",\n \"type\": \"AFFECTS\",\n \"to\": \"Region\"\n }\n ],\n \"relationshipProperties\": {\n \"AFFECTS\": {\n \"Number_city_affected\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "What are the codes and names for all regions, sorted by codes?"}, {"role": "assistant", "content": "MATCH (r:Region)\\nRETURN r.Region_code, r.Region_name\\nORDER BY r.Region_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": "List the top 5 questions with 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 \"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": "For each Article, find the number of Journal linked via PUBLISHED_IN where year is 2000 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.year = '2000'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY 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": "Find the top 3 filings with the earliest begin dates and amounts over 100000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.amount > 100000\\nRETURN f\\nORDER BY f.begin 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": "List the hashtags that have been used in tweets that contain links and have been posted by \"Neo4j\"."}, {"role": "assistant", "content": "MATCH (u:User {name: \"Neo4j\"})-[:POSTS]->(t:Tweet)\\nWHERE EXISTS((t)-[:CONTAINS]->(:Link))\\nWITH t\\nMATCH (t)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS hashtag"}]} {"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": "Fetch eight samples of the key_id of the Keyword and the journal_id for Journal!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nMATCH (m:Journal)\\nRETURN n.key_id, m.journal_id\\nLIMIT 8"}]} {"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 29d!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH '29d'\\nRETURN n"}]} {"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": "\"where are the routers located?\""}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(r:Router)\\nRETURN dc.name AS DataCenterName, dc.location AS Location, r.name AS RouterName"}]} {"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 `community`."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name AS character_name, c.community\\nORDER BY c.community DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"movie_id\": \"INTEGER\",\n \"Budget_million\": \"FLOAT\",\n \"Gross_worldwide\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"BookClub\": {\n \"properties\": {\n \"Publisher\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Author_or_Editor\": \"STRING\",\n \"book_club_id\": \"INTEGER\",\n \"Book_Title\": \"STRING\"\n }\n },\n \"CultureCompany\": {\n \"properties\": {\n \"movie_id\": \"STRING\",\n \"book_club_id\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Incorporated_in\": \"STRING\",\n \"Group_Equity_Shareholding\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which directors had a movie in either 1999 or 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.Year IN [1999,2000]\\nRETURN m.Director"}]} {"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 where affiliation is unspecified, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{affiliation:'unspecified'})-[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 the first 5 Entities that are registered in the same jurisdiction as an entity with the name \"TIANSHENG INDUSTRY AND TRADING CO., LTD.\"."}, {"role": "assistant", "content": "MATCH (e:Entity {name: \"TIANSHENG INDUSTRY AND TRADING CO., LTD.\"})\\nWITH e.jurisdiction AS targetJurisdiction\\nMATCH (other:Entity)\\nWHERE other.jurisdiction = targetJurisdiction AND other.name <> \"TIANSHENG INDUSTRY AND TRADING CO., LTD.\"\\nRETURN other.name\\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": "Display the names of businesses with at least two reviews."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, count(r) AS reviewsCount\\nWHERE reviewsCount >= 2\\nRETURN b.name"}]} {"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 J. Number Theory, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J. Number Theory'})-[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": "List the top 5 customers based on the number of orders placed."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5\\nRETURN c.companyName AS customerName, orderCount"}]} {"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)\\nWHERE c.centrality IS NOT NULL\\nRETURN c.name, c.centrality\\nORDER BY c.centrality 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": "List the movies that have a plot mentioning 'kingdom'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'kingdom'\\nRETURN m.title, m.plot"}]} {"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": "Find the shortest path between Categories where category_id is 088fbf884bd7c6533956a45531b362b7 and DOI, with doi_id equal abce5ed79c520bdb8fd79a61a852648d, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[*]-(e:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'}))\\nRETURN nodes(p)"}]} {"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 Summation and transformation formulas for elliptic hypergeometric series and PUBLISHED_IN has pages on 479-502!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '479-502'}]->(m)\\nWHERE n.title='Summation and transformation formulas for elliptic hypergeometric series'\\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": "Which 3 production companies have produced films with a runtime longer than 180 minutes?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.runtime > 180\\nRETURN p.name AS ProductionCompany, COUNT(m) AS NumberOfMovies\\nORDER BY NumberOfMovies DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"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 comments and the number of nodes connected to them via PUBLISHED_IN with meta = 227."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '227'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"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 are part of orders that were required to be shipped before '1997-01-01'."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.requiredDate < '1997-01-01'\\nRETURN DISTINCT p.productName AS ProductName, p.productID AS ProductID"}]} {"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 concerned in filings with an amount greater than 750000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWHERE f.amount > 750000\\nRETURN e.name AS concerned_entity, f.amount AS filing_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": "Which streams are part of a team created before 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2015-01-01T00:00:00Z')\\nRETURN s"}]} {"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 nlin.SI!"}, {"role": "assistant", "content": "MATCH path=(:Categories {specifications:'nlin.SI'})-->()\\nRETURN path"}]} {"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 DataCenters located in 'Iceland, Rekjavik'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {location: 'Iceland, Rekjavik'})\\nRETURN dc.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": "How many machines are there in rack 10 of DataCenter DC1?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(rack:Rack {rack: 10})-[:HOLDS]->(machine:Machine)\\nRETURN count(machine) AS numberOfMachines"}]} {"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 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 are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (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. '})-[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 \"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 users who are both moderators and VIPs for any stream?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE exists{ (u)-[:MODERATOR]->(:Stream) } AND exists{ (u)-[:VIP]->(:Stream) }\\nRETURN u.name\\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": "Are there any nodes that are connected with Topic where label is Mathematical Analysis_8 and share a common property with Author, for which author_id equals fd6fcf9374c7e5fd0377800da5e8f846?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematical Analysis_8'})-[r]->(n), (d:Author{author_id:'fd6fcf9374c7e5fd0377800da5e8f846'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Station_ID\": \"INTEGER\",\n \"Annual_interchanges\": \"FLOAT\",\n \"Main_Services\": \"STRING\",\n \"Location\": \"STRING\",\n \"Number_of_Platforms\": \"INTEGER\",\n \"Total_Passengers\": \"FLOAT\",\n \"Annual_entry_exit\": \"FLOAT\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Service\": \"STRING\",\n \"Time\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n }\n ]\n}"}, {"role": "user", "content": "Show the name, time, and service for all trains."}, {"role": "assistant", "content": "MATCH (s:Station)-[:SERVES]->(t:Train)\\nRETURN t.Name, t.Time, t.Service"}]} {"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 interact in book 1 with a weight exactly 291."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1 {weight: 291}]->(c2:Character)\\nRETURN c1.name AS Character1, c2.name AS Character2"}]} {"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 sum of the revenue and budget is more than 1 billion dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE (m.revenue + m.budget) > 1000000000\\nRETURN m"}]} {"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": "How many paths are there between DOI where doi_id is 0ef3b1eb742dfb0bc64bdfab8ed422f1 and Article, for which comments equals 23 pages, 1 figure?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'})-[*]->(d:Article{comments:'23 pages, 1 figure'})\\nRETURN count(p)"}]} {"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 Randall!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Randall'})-[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 minimum `weight` of the `INTERACTS3` relationship between characters with a `book1BetweennessCentrality` greater than 400?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS3]->(c2:Character)\\nWHERE c1.book1BetweennessCentrality > 400\\nRETURN min(r.weight)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Keyword where key_id is 4969a8e0646cdb8842726781e7637625 and share a common property with Keyword, for which key_id equals 6ded85146e3dbfb1bb866831b8948f5b?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'4969a8e0646cdb8842726781e7637625'})-[r]->(n), (d:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"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 is the name and capacity for the stadium with highest average attendance?"}, {"role": "assistant", "content": "MATCH (stadium:stadium)\\nRETURN stadium.Name,stadium.Capacity\\nORDER BY stadium.Average 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": "Which characters have the lowest 'book1BetweennessCentrality' and are part of community 579? Provide first 3 results."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality IS NOT NULL AND c.community = 579\\nRETURN c\\nORDER BY c.book1BetweennessCentrality ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Report for which report_no is ITF-99-42, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_no:'ITF-99-42'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) 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 is the most recent tweet posted by \"Neo4j\"?"}, {"role": "assistant", "content": "MATCH (u:User {name: \"Neo4j\"})-[:POSTS]->(t:Tweet)\\nRETURN t.text\\nORDER BY t.created_at DESC\\nLIMIT 1"}]} {"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.1016/S0764-4442(00)00217-2, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0764-4442(00)00217-2'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the first names of all the students in room 107."}, {"role": "assistant", "content": "MATCH (n:List)\\nWHERE n.Classroom = 107\\nRETURN DISTINCT n.FirstName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Candidate\": {\n \"properties\": {\n \"Oppose_rate\": \"FLOAT\",\n \"Consider_rate\": \"FLOAT\",\n \"Poll_Source\": \"STRING\",\n \"Date\": \"STRING\",\n \"Candidate_ID\": \"INTEGER\",\n \"Support_rate\": \"FLOAT\",\n \"Unsure_rate\": \"FLOAT\",\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 \"Sex\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "how many people are there whose weight is higher than 85 for each gender?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.Weight > 85\\nRETURN count(*), p.Sex"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Employee\": {\n \"properties\": {\n \"Date_of_Birth\": \"STRING\",\n \"Employee_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Employee_ID\": \"INTEGER\",\n \"Gender_MFU\": \"STRING\"\n }\n },\n \"DocumentLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Date_in_Location_From\": \"STRING\",\n \"Date_in_Locaton_To\": \"STRING\"\n }\n },\n \"RefLocation\": {\n \"properties\": {\n \"Location_Code\": \"STRING\",\n \"Location_Description\": \"STRING\",\n \"Location_Name\": \"STRING\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"Role_Name\": \"STRING\",\n \"Role_Code\": \"STRING\",\n \"Role_Description\": \"STRING\"\n }\n },\n \"RefCalendar\": {\n \"properties\": {\n \"Day_Number\": \"INTEGER\",\n \"Calendar_Date\": \"STRING\"\n }\n },\n \"DocumentsToBeDestroyed\": {\n \"properties\": {\n \"Actual_Destruction_Date\": \"STRING\",\n \"Planned_Destruction_Date\": \"STRING\",\n \"Document_ID\": \"INTEGER\",\n \"Destroyed_by_Employee_ID\": \"INTEGER\",\n \"Destruction_Authorised_by_Employee_ID\": \"INTEGER\"\n }\n },\n \"AllDocument\": {\n \"properties\": {\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Date_Stored\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"RefLocation\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSIGNS\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefCalendar\"\n },\n {\n \"from\": \"DocumentsToBeDestroyed\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"DocumentLocation\",\n \"type\": \"STORES\",\n \"to\": \"AllDocument\"\n },\n {\n \"from\": \"AllDocument\",\n \"type\": \"\",\n \"to\": \"RefDocumentType\"\n }\n ]\n}"}, {"role": "user", "content": "Show the description for role name \"Proof Reader\"."}, {"role": "assistant", "content": "MATCH (r:Role)\\nWHERE r.Role_Name = \"Proof Reader\"\\nRETURN r.Role_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 productName of all products supplied by the supplier with supplierID equal to '1'."}, {"role": "assistant", "content": "MATCH (s:Supplier {supplierID: '1'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName"}]} {"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` is located in a country with a `tld` that is present in the top 5 most frequent `tld` values?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(:Entity)\\nWITH c.tld AS tld, count(*) AS frequency\\nORDER BY frequency DESC\\nLIMIT 5\\nWITH collect(tld) AS topTlds\\nMATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(country:Country)\\nWHERE country.tld IN topTlds\\nRETURN sum(f.amount) AS total_amount"}]} {"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 countries where the most movies originate from based on the 'countries' property of movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nUNWIND m.countries AS country\\nWITH country, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 5\\nRETURN country, movieCount"}]} {"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 \"Course\": {\n \"properties\": {\n \"CName\": \"STRING\",\n \"Credits\": \"INTEGER\",\n \"DNO\": \"INTEGER\",\n \"Hours\": \"STRING\",\n \"Days\": \"STRING\",\n \"Instructor\": \"INTEGER\",\n \"CID\": \"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 \"MinorIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"DNO\": \"INTEGER\"\n }\n },\n \"MemberOf\": {\n \"properties\": {\n \"Appt_Type\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"FacID\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Room\": \"STRING\",\n \"DNO\": \"INTEGER\",\n \"Building\": \"STRING\",\n \"Division\": \"STRING\",\n \"DPhone\": \"INTEGER\",\n \"DName\": \"STRING\"\n }\n },\n \"Gradeconversion\": {\n \"properties\": {\n \"gradepoint\": \"FLOAT\",\n \"lettergrade\": \"STRING\"\n }\n },\n \"EnrolledIn\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Grade\": \"STRING\",\n \"CID\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Faculty\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MemberOf\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"MinorIn\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n }\n ]\n}"}, {"role": "user", "content": "List all names of courses with 1 credit?"}, {"role": "assistant", "content": "MATCH (c:Course {Credits:1})\\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": "List the top 5 actors by number of different genres they've acted in."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH a, count(distinct g) AS genreCount\\nORDER BY genreCount DESC\\nLIMIT 5\\nRETURN a.name AS actor, genreCount AS numberOfGenres"}]} {"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 distinct countries of origin?"}, {"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 \"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": "Search for the article_id values from 20 Article that are linked to Journal via PUBLISHED_IN with meta = 18, and return article_id along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta='18'\\nWITH DISTINCT n, m\\nRETURN n.article_id AS article_id, count(m) AS count\\nLIMIT 20"}]} {"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": "What are the properties of Journal that is PUBLISHED_IN, with meta equal to 220, connected to Article that has comments equal to 22 pages, LaTeX?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '220'}]->(m:Journal)\\nWHERE n.comments = '22 pages, LaTeX'\\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": "Which products are supplied by a supplier in 'London'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {city: 'London'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName AS ProductName, p.productID AS ProductID"}]} {"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 followers but fewer than 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count < 1000000\\nRETURN s.name AS stream_name, s.followers AS follower_count\\nORDER BY s.followers DESC\\nLIMIT 10"}]} {"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 088fbf884bd7c6533956a45531b362b7!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where doi_id is 6ecd77a291d325cb3e01160880d88c69 and Journal, with name equal Izv. Math, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'})-[*]-(e:Journal{name:'Izv. Math'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which teachers teach in classroom 110? Give me their first names."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.Classroom = 110\\nRETURN t.FirstName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"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 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 traversing through DOI with name 10.1007/s00220-004-1078-7!"}, {"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.'})-[*]->(d:DOI{name:'10.1007/s00220-004-1078-7'})-[*]->(n)\\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": "What is the average number of followers for users who follow 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: 'neo4j'})<-[:FOLLOWS]-(follower:User)\\nWITH avg(follower.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": "Find the business with the most reviews."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(review:Review)\\nWITH b, count(review) AS reviewCount\\nRETURN b.name AS businessName, reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Teacher\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n },\n \"List\": {\n \"properties\": {\n \"Classroom\": \"INTEGER\",\n \"Grade\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"LastName\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the last names of teachers teaching in classroom 109."}, {"role": "assistant", "content": "MATCH (t:Teacher)\\nWHERE t.Classroom = 109\\nRETURN t.LastName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the 3 most recent answers provided to questions tagged with 'neo4j'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'neo4j'})\\nMATCH (a:Answer)-[:ANSWERED]->(q)\\nRETURN a.link, a.title, a.body_markdown, a.uuid\\nORDER BY a.uuid DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What is the average view count of questions answered by the user with display name \"Nikhil Kulkarni\"?"}, {"role": "assistant", "content": "MATCH (u:User {display_name: \"Nikhil Kulkarni\"})-[:PROVIDED]->(a:Answer)-[:ANSWERED]->(q:Question)\\nWITH avg(q.view_count) AS average_view_count\\nRETURN average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What are the top 3 most viewed questions without any answers?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answer_count = 0\\nRETURN q\\nORDER BY q.view_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What is the score of the comment with the uuid 122427099?"}, {"role": "assistant", "content": "MATCH (c:Comment)\\nWHERE c.uuid = 122427099\\nRETURN c.score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Nurse\": {\n \"properties\": {\n \"EmployeeID\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\",\n \"Registered\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Physician\": {\n \"properties\": {\n \"EmployeeID\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Procedure\": {\n \"properties\": {\n \"Cost\": \"FLOAT\",\n \"Name\": \"STRING\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Undergo\": {\n \"properties\": {\n \"AssistingNurse\": \"INTEGER\",\n \"Procedures\": \"INTEGER\",\n \"DateUndergoes\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\",\n \"Stay\": \"INTEGER\"\n }\n },\n \"OnCall\": {\n \"properties\": {\n \"OnCallEnd\": \"STRING\",\n \"BlockFloor\": \"INTEGER\",\n \"Nurse\": \"INTEGER\",\n \"BlockCode\": \"INTEGER\",\n \"OnCallStart\": \"STRING\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Brand\": \"STRING\",\n \"Description\": \"STRING\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Room\": {\n \"properties\": {\n \"RoomNumber\": \"INTEGER\",\n \"Unavailable\": \"INTEGER\",\n \"BlockFloor\": \"INTEGER\",\n \"RoomType\": \"STRING\",\n \"BlockCode\": \"INTEGER\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"End\": \"STRING\",\n \"Start\": \"STRING\",\n \"ExaminationRoom\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\",\n \"PrepNurse\": \"INTEGER\",\n \"AppointmentID\": \"INTEGER\"\n }\n },\n \"Prescribe\": {\n \"properties\": {\n \"Medication\": \"INTEGER\",\n \"Dose\": \"STRING\",\n \"Appointment\": \"INTEGER\",\n \"Date\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Phone\": \"STRING\",\n \"InsuranceID\": \"INTEGER\",\n \"SSN\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"PCP\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Head\": \"INTEGER\",\n \"DepartmentID\": \"INTEGER\"\n }\n },\n \"Stay\": {\n \"properties\": {\n \"Room\": \"INTEGER\",\n \"StayStart\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"StayEnd\": \"STRING\",\n \"StayID\": \"INTEGER\"\n }\n },\n \"Block\": {\n \"properties\": {\n \"BlockFloor\": \"INTEGER\",\n \"BlockCode\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Procedure\",\n \"type\": \"PERFORMED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Procedure\",\n \"type\": \"PERFORMED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"RECEIVES\",\n \"to\": \"Procedure\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"UNDERGOES\",\n \"to\": \"Stay\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"RECEIVES\",\n \"to\": \"Procedure\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"PRESCRIBES\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Room\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"OCCUPIES\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"MADE_DURING\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"PRESCRIBES\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"MADE_DURING\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"UNDERGOES\",\n \"to\": \"Stay\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"OCCUPIES\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Room\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n }\n ],\n \"relationshipProperties\": {\n \"EMPLOYED_BY\": {\n \"PrimaryAffiliation\": \"INTEGER\"\n },\n \"PERFORMED_BY\": {\n \"CertificationDate\": \"STRING\",\n \"CertificationExpires\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the id of the appointment with the most recent start date?"}, {"role": "assistant", "content": "MATCH (a:Appointment)\\nRETURN a.AppointmentID\\nORDER BY a.Start DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the top 5 answers with the highest score."}, {"role": "assistant", "content": "MATCH (a:Answer)-[:ANSWERED]->(:Question)\\nRETURN a\\nORDER BY a.score DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the tags of questions that have been answered by users with a display name that starts with \"A\"."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.display_name STARTS WITH \"A\"\\nMATCH (u)-[:PROVIDED]->(a:Answer)\\nMATCH (a)-[:ANSWERED]->(q:Question)\\nMATCH (q)-[:TAGGED]->(t:Tag)\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the users who have provided answers to questions they have also asked."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)<-[:ANSWERED]-(a:Answer)\\nWHERE exists((u)-[:PROVIDED]->(a))\\nRETURN DISTINCT u.display_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "Display the top 3 most active users in terms of asking questions."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u.display_name, count(q) AS questions_asked\\nORDER BY questions_asked DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What is the average score of comments made by users who also asked questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(:Question)\\nWITH u\\nMATCH (u)-[:COMMENTED]->(c:Comment)\\nRETURN avg(c.score) AS average_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "Who provided the answer with the link 'https://stackoverflow.com/a/69272967'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:PROVIDED]->(a:Answer {link: 'https://stackoverflow.com/a/69272967'})\\nRETURN u.display_name AS user_who_provided_answer"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "Which 5 questions have the oldest creation dates?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.creation_date\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List all the answers with a negative score."}, {"role": "assistant", "content": "MATCH (a:Answer)\\nWHERE a.score < 0\\nRETURN a.link, a.title, a.body_markdown, a.score, a.uuid"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the body_markdown of the comments associated with the question with the highest view count."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH max(q.view_count) AS max_views\\nMATCH (q:Question)\\nWHERE q.view_count = max_views\\nMATCH (q)<-[:COMMENTED_ON]-(c:Comment)\\nRETURN c.body_markdown"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What is the average answer count for questions tagged with \"graphenedb\"?"}, {"role": "assistant", "content": "MATCH (t:Tag {name: \"graphenedb\"})<-[:TAGGED]-(q:Question)\\nRETURN avg(q.answer_count) AS average_answer_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Node\": {\n \"properties\": {}\n },\n \"Record\": {\n \"properties\": {}\n },\n \"Relationship\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "How many papers presented at 'ACL' are related to Machine Translation?"}, {"role": "assistant", "content": "MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})\\nMATCH (p)-[:paper_in_domain]->(:domain {name:'Machine Translation'})\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"AssetsInEvent\": {\n \"properties\": {\n \"Event_ID\": \"INTEGER\",\n \"Asset_ID\": \"INTEGER\"\n }\n },\n \"Channel\": {\n \"properties\": {\n \"Channel_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"ProductsInEvent\": {\n \"properties\": {\n \"Product_in_Event_ID\": \"INTEGER\",\n \"Event_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\"\n }\n },\n \"Finance\": {\n \"properties\": {\n \"Finance_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"FLOAT\",\n \"Product_ID\": \"INTEGER\",\n \"Product_Type_Code\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Event_ID\": \"INTEGER\",\n \"Channel_ID\": \"INTEGER\",\n \"Location_ID\": \"INTEGER\",\n \"Finance_ID\": \"INTEGER\",\n \"Event_Type_Code\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Party_Details\": \"STRING\",\n \"Party_ID\": \"INTEGER\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"Agreement\": {\n \"properties\": {\n \"Event_ID\": \"INTEGER\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Asset\": {\n \"properties\": {\n \"Asset_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"AssetsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"CONTAINS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Finance\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"CONTAINS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Finance\"\n },\n {\n \"from\": \"AssetsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Agreement\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"ORGANIZED_AT\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"ORGANIZED_AT\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Agreement\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n }\n ],\n \"relationshipProperties\": {\n \"ORGANIZED_AT\": {\n \"Role_Code\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and type codes of products?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.Product_Name, p.Product_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "What are the top 3 lowest scored answers on the most viewed questions?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:ANSWERED]-(a:Answer)\\nWITH q, a\\nORDER BY q.view_count DESC\\nLIMIT 3\\nWITH a\\nORDER BY a.score ASC\\nLIMIT 3\\nRETURN a.link AS answer_link, a.score AS answer_score, a.body_markdown AS answer_body"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "List the top 5 most recent questions with more than one answer."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answer_count > 1\\nRETURN q.title, q.link, q.creation_date\\nORDER BY q.creation_date DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Node\": {\n \"properties\": {}\n },\n \"Record\": {\n \"properties\": {}\n },\n \"Relationship\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Which papers cite the paper 'A sequential algorithm for training text classifiers'?"}, {"role": "assistant", "content": "MATCH (p:paper {name: 'A sequential algorithm for training text classifiers'})<-[:paper_cite_paper]-(c:paper)\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"AssetsInEvent\": {\n \"properties\": {\n \"Event_ID\": \"INTEGER\",\n \"Asset_ID\": \"INTEGER\"\n }\n },\n \"Channel\": {\n \"properties\": {\n \"Channel_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"ProductsInEvent\": {\n \"properties\": {\n \"Product_in_Event_ID\": \"INTEGER\",\n \"Event_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\"\n }\n },\n \"Finance\": {\n \"properties\": {\n \"Finance_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"FLOAT\",\n \"Product_ID\": \"INTEGER\",\n \"Product_Type_Code\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Event_ID\": \"INTEGER\",\n \"Channel_ID\": \"INTEGER\",\n \"Location_ID\": \"INTEGER\",\n \"Finance_ID\": \"INTEGER\",\n \"Event_Type_Code\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Party_Details\": \"STRING\",\n \"Party_ID\": \"INTEGER\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n },\n \"Agreement\": {\n \"properties\": {\n \"Event_ID\": \"INTEGER\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Asset\": {\n \"properties\": {\n \"Asset_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"AssetsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"CONTAINS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Finance\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"CONTAINS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Finance\"\n },\n {\n \"from\": \"AssetsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Agreement\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"ProductsInEvent\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"ORGANIZED_AT\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"ORGANIZED_AT\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Agreement\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Event\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n }\n ],\n \"relationshipProperties\": {\n \"ORGANIZED_AT\": {\n \"Role_Code\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show different type codes of products and the number of products with each type code."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.Product_Type_Code, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "Can you list all tags associated with questions asked by the user 'Anu'?"}, {"role": "assistant", "content": "MATCH (u:User {display_name: 'Anu'})-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nRETURN t.name AS tag_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"accepted_answer_id\": \"INTEGER\",\n \"creation_date\": \"INTEGER\",\n \"view_count\": \"INTEGER\",\n \"answer_count\": \"INTEGER\",\n \"body_markdown\": \"STRING\",\n \"uuid\": \"INTEGER\",\n \"title\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"uuid\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"Answer\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"title\": \"STRING\",\n \"is_accepted\": \"BOOLEAN\",\n \"body_markdown\": \"STRING\",\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\"\n }\n },\n \"Comment\": {\n \"properties\": {\n \"score\": \"INTEGER\",\n \"uuid\": \"INTEGER\",\n \"link\": \"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 \"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": "Find the top 3 questions with the most comments."}, {"role": "assistant", "content": "MATCH (q:Question)<-[:COMMENTED_ON]-(c:Comment)\\nWITH q, COUNT(c) AS comment_count\\nORDER BY comment_count DESC\\nLIMIT 3\\nRETURN q.title AS question_title, q.link AS question_link, comment_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Nurse\": {\n \"properties\": {\n \"EmployeeID\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\",\n \"Registered\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Physician\": {\n \"properties\": {\n \"EmployeeID\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Procedure\": {\n \"properties\": {\n \"Cost\": \"FLOAT\",\n \"Name\": \"STRING\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Undergo\": {\n \"properties\": {\n \"AssistingNurse\": \"INTEGER\",\n \"Procedures\": \"INTEGER\",\n \"DateUndergoes\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\",\n \"Stay\": \"INTEGER\"\n }\n },\n \"OnCall\": {\n \"properties\": {\n \"OnCallEnd\": \"STRING\",\n \"BlockFloor\": \"INTEGER\",\n \"Nurse\": \"INTEGER\",\n \"BlockCode\": \"INTEGER\",\n \"OnCallStart\": \"STRING\"\n }\n },\n \"Medication\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Brand\": \"STRING\",\n \"Description\": \"STRING\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Room\": {\n \"properties\": {\n \"RoomNumber\": \"INTEGER\",\n \"Unavailable\": \"INTEGER\",\n \"BlockFloor\": \"INTEGER\",\n \"RoomType\": \"STRING\",\n \"BlockCode\": \"INTEGER\"\n }\n },\n \"Appointment\": {\n \"properties\": {\n \"End\": \"STRING\",\n \"Start\": \"STRING\",\n \"ExaminationRoom\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\",\n \"PrepNurse\": \"INTEGER\",\n \"AppointmentID\": \"INTEGER\"\n }\n },\n \"Prescribe\": {\n \"properties\": {\n \"Medication\": \"INTEGER\",\n \"Dose\": \"STRING\",\n \"Appointment\": \"INTEGER\",\n \"Date\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"Physician\": \"INTEGER\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Phone\": \"STRING\",\n \"InsuranceID\": \"INTEGER\",\n \"SSN\": \"INTEGER\",\n \"Address\": \"STRING\",\n \"PCP\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Head\": \"INTEGER\",\n \"DepartmentID\": \"INTEGER\"\n }\n },\n \"Stay\": {\n \"properties\": {\n \"Room\": \"INTEGER\",\n \"StayStart\": \"STRING\",\n \"Patient\": \"INTEGER\",\n \"StayEnd\": \"STRING\",\n \"StayID\": \"INTEGER\"\n }\n },\n \"Block\": {\n \"properties\": {\n \"BlockFloor\": \"INTEGER\",\n \"BlockCode\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Procedure\",\n \"type\": \"PERFORMED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Procedure\",\n \"type\": \"PERFORMED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"RECEIVES\",\n \"to\": \"Procedure\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"UNDERGOES\",\n \"to\": \"Stay\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"RECEIVES\",\n \"to\": \"Procedure\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"PRESCRIBES\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Room\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"OCCUPIES\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Nurse\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"MADE_DURING\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"PRESCRIBES\",\n \"to\": \"Medication\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"MADE_DURING\",\n \"to\": \"Appointment\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Appointment\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Prescribe\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"TREATED_BY\",\n \"to\": \"Physician\"\n },\n {\n \"from\": \"Undergo\",\n \"type\": \"UNDERGOES\",\n \"to\": \"Stay\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"OCCUPIES\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Stay\",\n \"type\": \"TREATS\",\n \"to\": \"Patient\"\n },\n {\n \"from\": \"Room\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n },\n {\n \"from\": \"OnCall\",\n \"type\": \"IS_ASSIGNED_TO\",\n \"to\": \"Block\"\n }\n ],\n \"relationshipProperties\": {\n \"EMPLOYED_BY\": {\n \"PrimaryAffiliation\": \"INTEGER\"\n },\n \"PERFORMED_BY\": {\n \"CertificationDate\": \"STRING\",\n \"CertificationExpires\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the unique block codes that have available rooms?"}, {"role": "assistant", "content": "MATCH (r:Room)\\nWHERE r.Unavailable = 0\\nRETURN DISTINCT r.BlockCode"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Node\": {\n \"properties\": {}\n },\n \"Record\": {\n \"properties\": {}\n },\n \"Relationship\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Which conferences have the highest number of papers in Robotics presented by authors from 'Tsinghua University'?"}, {"role": "assistant", "content": "MATCH (d:domain {name: 'Robotics'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference)<-[:author_in_affiliation]-(a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'Tsinghua University'})\\nRETURN c.name, COUNT(p) AS num_papers\\nORDER BY num_papers DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"posterEmbedding\": \"LIST\",\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"budget\": \"INTEGER\",\n \"plotEmbedding\": \"LIST\",\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 }\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 \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"_Bloom_Perspective_\": {\n \"properties\": {\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"data\": \"STRING\"\n }\n },\n \"_Bloom_Scene_\": {\n \"properties\": {\n \"ranges\": \"STRING\",\n \"gds\": \"STRING\",\n \"visualisation\": \"STRING\",\n \"numOfRels\": \"INTEGER\",\n \"createdBy\": \"STRING\",\n \"filters\": \"STRING\",\n \"style\": \"STRING\",\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"numOfNodes\": \"INTEGER\",\n \"id\": \"STRING\",\n \"relationships\": \"STRING\",\n \"nodes\": \"STRING\",\n \"lastModified\": \"INTEGER\",\n \"name\": \"STRING\",\n \"createdAt\": \"INTEGER\"\n }\n },\n \"RATED\": {\n \"properties\": {\n \"rating\": \"FLOAT\",\n \"timestamp\": \"INTEGER\"\n }\n },\n \"ACTED_IN\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n },\n \"DIRECTED\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Who are the actors in \"Avatar\"? I want to use call subquerying syntax"}, {"role": "assistant", "content": "MATCH (m:Movie {title:'Avatar'})\nCALL (m) {\n WITH m\n MATCH (a:Actor)-[:ACTED_IN]->(m)\n RETURN collect(a.name) AS actors\n}\nRETURN m.title AS movie, actors;"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"posterEmbedding\": \"LIST\",\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"budget\": \"INTEGER\",\n \"plotEmbedding\": \"LIST\",\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 }\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 \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"_Bloom_Perspective_\": {\n \"properties\": {\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"data\": \"STRING\"\n }\n },\n \"_Bloom_Scene_\": {\n \"properties\": {\n \"ranges\": \"STRING\",\n \"gds\": \"STRING\",\n \"visualisation\": \"STRING\",\n \"numOfRels\": \"INTEGER\",\n \"createdBy\": \"STRING\",\n \"filters\": \"STRING\",\n \"style\": \"STRING\",\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"numOfNodes\": \"INTEGER\",\n \"id\": \"STRING\",\n \"relationships\": \"STRING\",\n \"nodes\": \"STRING\",\n \"lastModified\": \"INTEGER\",\n \"name\": \"STRING\",\n \"createdAt\": \"INTEGER\"\n }\n },\n \"RATED\": {\n \"properties\": {\n \"rating\": \"FLOAT\",\n \"timestamp\": \"INTEGER\"\n }\n },\n \"ACTED_IN\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n },\n \"DIRECTED\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How to create a new Movie with a Genre? I want to use best practice create patterns"}, {"role": "assistant", "content": "CREATE (m:Movie {\n title: \"Matrix Reborn\",\n year: 2025,\n imdbId: \"tt9999999\"\n})-[:IN_GENRE]->(:Genre {name: \"Sci-Fi\"})\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"posterEmbedding\": \"LIST\",\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"budget\": \"INTEGER\",\n \"plotEmbedding\": \"LIST\",\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 }\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 \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"_Bloom_Perspective_\": {\n \"properties\": {\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"data\": \"STRING\"\n }\n },\n \"_Bloom_Scene_\": {\n \"properties\": {\n \"ranges\": \"STRING\",\n \"gds\": \"STRING\",\n \"visualisation\": \"STRING\",\n \"numOfRels\": \"INTEGER\",\n \"createdBy\": \"STRING\",\n \"filters\": \"STRING\",\n \"style\": \"STRING\",\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"numOfNodes\": \"INTEGER\",\n \"id\": \"STRING\",\n \"relationships\": \"STRING\",\n \"nodes\": \"STRING\",\n \"lastModified\": \"INTEGER\",\n \"name\": \"STRING\",\n \"createdAt\": \"INTEGER\"\n }\n },\n \"RATED\": {\n \"properties\": {\n \"rating\": \"FLOAT\",\n \"timestamp\": \"INTEGER\"\n }\n },\n \"ACTED_IN\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n },\n \"DIRECTED\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How to remove all Movies older than the year 2000? Give me the recommended way of deleting a large volume of data"}, {"role": "assistant", "content": "MATCH (m:Movie)\nWHERE m.year < 2000\nCALL (m) {\n DETACH DELETE m\n} IN TRANSACTIONS"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"posterEmbedding\": \"LIST\",\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"budget\": \"INTEGER\",\n \"plotEmbedding\": \"LIST\",\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 }\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 \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"_Bloom_Perspective_\": {\n \"properties\": {\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"data\": \"STRING\"\n }\n },\n \"_Bloom_Scene_\": {\n \"properties\": {\n \"ranges\": \"STRING\",\n \"gds\": \"STRING\",\n \"visualisation\": \"STRING\",\n \"numOfRels\": \"INTEGER\",\n \"createdBy\": \"STRING\",\n \"filters\": \"STRING\",\n \"style\": \"STRING\",\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"numOfNodes\": \"INTEGER\",\n \"id\": \"STRING\",\n \"relationships\": \"STRING\",\n \"nodes\": \"STRING\",\n \"lastModified\": \"INTEGER\",\n \"name\": \"STRING\",\n \"createdAt\": \"INTEGER\"\n }\n },\n \"RATED\": {\n \"properties\": {\n \"rating\": \"FLOAT\",\n \"timestamp\": \"INTEGER\"\n }\n },\n \"ACTED_IN\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n },\n \"DIRECTED\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How can I set imdbRating=9 for all Movies, using concurrency and batch commits? Give me the recommended approach"}, {"role": "assistant", "content": "MATCH (m:Movie)\nCALL (m) {\n SET m.imdbRating = 9\n} IN 2 CONCURRENT TRANSACTIONS OF 500 ROWS"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"posterEmbedding\": \"LIST\",\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"budget\": \"INTEGER\",\n \"plotEmbedding\": \"LIST\",\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 }\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 \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\"\n }\n },\n \"_Bloom_Perspective_\": {\n \"properties\": {\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"data\": \"STRING\"\n }\n },\n \"_Bloom_Scene_\": {\n \"properties\": {\n \"ranges\": \"STRING\",\n \"gds\": \"STRING\",\n \"visualisation\": \"STRING\",\n \"numOfRels\": \"INTEGER\",\n \"createdBy\": \"STRING\",\n \"filters\": \"STRING\",\n \"style\": \"STRING\",\n \"version\": \"STRING\",\n \"roles\": \"LIST\",\n \"numOfNodes\": \"INTEGER\",\n \"id\": \"STRING\",\n \"relationships\": \"STRING\",\n \"nodes\": \"STRING\",\n \"lastModified\": \"INTEGER\",\n \"name\": \"STRING\",\n \"createdAt\": \"INTEGER\"\n }\n },\n \"RATED\": {\n \"properties\": {\n \"rating\": \"FLOAT\",\n \"timestamp\": \"INTEGER\"\n }\n },\n \"ACTED_IN\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n },\n \"DIRECTED\": {\n \"properties\": {\n \"role\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How can I create multiple Movie nodes from a parameter list? Show me how using UNWIND"}, {"role": "assistant", "content": "UNWIND $movieList AS movieData\nCREATE (m:Movie {\n title: movieData.title,\n year: movieData.year,\n imdbId: movieData.imdbId\n})\nRETURN m"}]}