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