Question: Which movie is longer, Robin Hood (the one that has Pietro Scalia as a film editor) or Romeo and Juliet (the one that received Golden Lion)?
Choices:
Robin Hood
Pleasantville
Talk to Her
Training Day
Curse of the Golden Flower
Rebecca
The Towering Inferno
Romeo and Juliet
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: Pietro Scalia
function: Relate
dependencies: 0
inputs: film editor
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 1
2
function: Find
inputs: Golden Lion
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robin Hood" . ?e <film_editor> ?e_1 . ?e_1 <pred:name> "Pietro Scalia" .   } UNION { ?e <pred:name> "Romeo and Juliet" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "Golden Lion" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robin Hood