Question: Which movie is longer, Diamonds Are Forever (the one that is shot in Germany) or Johnny English Reborn?
Choices:
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Training Day
Diamonds Are Forever
Pleasantville
Johnny English Reborn
Rebecca
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Diamonds Are Forever
function: And
dependencies: 1
2
function: Find
inputs: Johnny English Reborn
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Diamonds Are Forever" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "Johnny English Reborn" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Diamonds Are Forever