Question: Which one is shorter, mr. and mrs. Smith (which has a narrative location of New York City) or The Imaginarium of Doctor Parnassus
Choices:
Curse of the Golden Flower
The Imaginarium of Doctor Parnassus
Talk to Her
Pleasantville
Training Day
The Towering Inferno
Mr. & Mrs. Smith
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Mr. & Mrs. Smith
function: And
dependencies: 1
2
function: Find
inputs: The Imaginarium of Doctor Parnassus
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mr. & Mrs. Smith" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "The Imaginarium of Doctor Parnassus" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mr. & Mrs. Smith