Question: Which one is longer, Sherlock Holmes (the one whose composer is Hugo Friedhofer) or The Sum of All Fears (the one that is shot in Russia) ?
Choices:
A Prairie Home Companion
Rebecca
The Towering Inferno
The Fifth Element
Talk to Her
Curse of the Golden Flower
Training Day
The Sum of All Fears
Pleasantville
Sherlock Holmes
Answer: The Sum of All Fears
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherlock Holmes" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Hugo Friedhofer" .   } UNION { ?e <pred:name> "The Sum of All Fears" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Russia" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hugo Friedhofer
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Sherlock Holmes
function: And
dependencies: 1
2
function: Find
inputs: Russia
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: The Sum of All Fears
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater