Question: Which movie is longer, Alice (the one whose narrative location is New York City) or Scooby-Doo?
Choices:
Alice
Curse of the Golden Flower
Talk to Her
Rebecca
A Prairie Home Companion
The Fifth Element
Pleasantville
Scooby-Doo
The Hunchback of Notre Dame
Training Day
Answer: Alice
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Scooby-Doo" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Alice
function: And
dependencies: 1
2
function: Find
inputs: Scooby-Doo
function: SelectBetween
dependencies: 3
4
inputs: duration
greater