Which of the following queries could return the same person–movie pair more than once, even if the dataset guarantees that there is at most one PRODUCED relationship and at most one REVIEWED relationship between any person and movieMultiple choice
A
MATCH (p1:Person)-[:FOLLOWS]->(p2:Person), (p1)-[:REVIEWED]->(m:Movie) RETURN p1.name, m.title;
B
MATCH (p:Person)-[:REVIEWED]->(m:Movie)<-[:PRODUCED]-(p) RETURN p.name, m.title;
C
MATCH (p:Person)-[:PRODUCED]->(m:Movie) RETURN p.name, m.title;
D
MATCH (p:Person)-[r]->(m:Movie) WHERE type(r) IN ['PRODUCED','REVIEWED'] RETURN p.name, m.title;
E
MATCH (p:Person)-[r]->(m:Movie) WHERE (p)-[:REVIEWED]->(m) RETURN p.name, m.title;
Log in for full answers
We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
Q26: Which query ensures each project appears only once, even if multiple people work on it?
Q25: Which query returns people who authored work from projects funded by Innovation?
Q 22: Which query returns works authored by someone who is also a Researcher?
Q 21: Which query returns total hours worked on each project?
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!