Question: Which is longer, The Happening that has James Newton Howard as a performer or Marley & Me?
Choices:
A Prairie Home Companion
Training Day
Marley & Me
Rebecca
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
The Happening
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: James Newton Howard
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: The Happening
function: And
dependencies: 1
2
function: Find
inputs: Marley & Me
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Happening" . ?e <performer> ?e_1 . ?e_1 <pred:name> "James Newton Howard" .   } UNION { ?e <pred:name> "Marley & Me" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Marley & Me