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