Question: Which movie is longer, When in Rome (the one that is shot in New York City) or Oh! What a Lovely War?
Choices:
Rebecca
The Towering Inferno
Oh! What a Lovely War
The Hunchback of Notre Dame
Training Day
When in Rome
The Fifth Element
Curse of the Golden Flower
Talk to Her
Pleasantville
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: When in Rome
function: And
dependencies: 1
2
function: Find
inputs: Oh! What a Lovely War
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "When in Rome" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Oh! What a Lovely War" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Oh! What a Lovely War