Question: Which movie is longer, August (the one whose narrative location is Wales) or Shanghai (the one whose genre is neo-noir)?
Choices:
Pleasantville
Rebecca
Talk to Her
August
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
Shanghai
Answer: Shanghai
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "August" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Wales" .   } UNION { ?e <pred:name> "Shanghai" . ?e <genre> ?e_2 . ?e_2 <pred:name> "neo-noir" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wales
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: August
function: And
dependencies: 1
2
function: Find
inputs: neo-noir
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Shanghai
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater