Question: Which film has the longer running time, Romeo and Juliet (whose director of photography is William H. Daniels) or The Mummy (whose director is Alex Kurtzman)?
Choices: The Fifth Element
Talk to Her
Rebecca
Curse of the Golden Flower
Training Day
The Mummy
A Prairie Home Companion
Romeo and Juliet
Pleasantville
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Romeo and Juliet" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "William H. Daniels" .   } UNION { ?e <pred:name> "The Mummy" . ?e <director> ?e_2 . ?e_2 <pred:name> "Alex Kurtzman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: William H. Daniels
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: Alex Kurtzman
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: The Mummy
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Romeo and Juliet