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