Question: Which movie is longer, Alice (the one whose narrative location is New York City) or Scott Pilgrim vs. the World?
Choices:
Curse of the Golden Flower
Training Day
A Prairie Home Companion
Pleasantville
The Fifth Element
Scott Pilgrim vs. the World
Rebecca
The Towering Inferno
Alice
The Hunchback of Notre Dame
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: Scott Pilgrim vs. the World
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Scott Pilgrim vs. the World" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Scott Pilgrim vs. the World