Question: Which movie is shorter in length, Wanted (the one that has Vinod Khanna as a cast member) or The Last of the Mohicans (the one whose distributor is United Artists)?
Choices:
The Towering Inferno
The Last of the Mohicans
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Pleasantville
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Wanted
Program:
function: Find
inputs: Vinod Khanna
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Wanted
function: And
dependencies: 1
2
function: Find
inputs: United Artists
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: The Last of the Mohicans
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wanted" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Vinod Khanna" .   } UNION { ?e <pred:name> "The Last of the Mohicans" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "United Artists" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Last of the Mohicans