Question: Which movie is longer, The Last of the Mohicans (the one whose distributor is United Artists) or Detective Conan: Captured in Her Eyes?
Choices:
The Fifth Element
Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
The Last of the Mohicans
Pleasantville
Training Day
The Hunchback of Notre Dame
Detective Conan: Captured in Her Eyes
Program:
function: Find
inputs: United Artists
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Last of the Mohicans
function: And
dependencies: 1
2
function: Find
inputs: Detective Conan: Captured in Her Eyes
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last of the Mohicans" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "United Artists" .   } UNION { ?e <pred:name> "Detective Conan: Captured in Her Eyes" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Detective Conan: Captured in Her Eyes