Question: Which movie is shorter, Kansas City (the one that has Jennifer Jason Leigh as a cast member) or Anonymous?
Choices:
Training Day
Talk to Her
The Hunchback of Notre Dame
Pleasantville
Rebecca
Anonymous
Curse of the Golden Flower
Kansas City
A Prairie Home Companion
The Fifth Element
Answer: Kansas City
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jennifer Jason Leigh" .   } UNION { ?e <pred:name> "Anonymous" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jennifer Jason Leigh
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Kansas City
function: And
dependencies: 1
2
function: Find
inputs: Anonymous
function: SelectBetween
dependencies: 3
4
inputs: duration
less