Question: Which is shorter, Alfie whose narrative location is New York City or The Alamo distributed by United Artists?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
Talk to Her
A Prairie Home Companion
The Alamo
Rebecca
Training Day
Alfie
Curse of the Golden Flower
Answer: Alfie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alfie" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "The Alamo" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "United Artists" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Alfie
function: And
dependencies: 1
2
function: Find
inputs: United Artists
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: The Alamo
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less