Question: Does Peter Pan whose composer is James Newton Howard or Con Air have the longer running time?
Choices:
The Hunchback of Notre Dame
Training Day
The Towering Inferno
A Prairie Home Companion
The Fifth Element
Pleasantville
Talk to Her
Peter Pan
Con Air
Rebecca
Program:
function: Find
inputs: James Newton Howard
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Peter Pan
function: And
dependencies: 1
2
function: Find
inputs: Con Air
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Pan" . ?e <composer> ?e_1 . ?e_1 <pred:name> "James Newton Howard" .   } UNION { ?e <pred:name> "Con Air" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Con Air