Question: Which is longer, Mindscape shot in Montreal, or The Edge narrated in Canada?
Choices:
Talk to Her
The Edge
Rebecca
The Hunchback of Notre Dame
Training Day
Pleasantville
The Towering Inferno
Mindscape
A Prairie Home Companion
Curse of the Golden Flower
Answer: The Edge
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mindscape" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Montreal" .   } UNION { ?e <pred:name> "The Edge" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Canada" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Montreal
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Mindscape
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: The Edge
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater