Question: Which movie is shorter, Twin Peaks: Fire Walk with Me (the one that has Ray Wise as a cast member) or Tangled (the one whose duration is 86 minute)?
Choices:
Talk to Her
The Hunchback of Notre Dame
Rebecca
Twin Peaks: Fire Walk with Me
Pleasantville
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
Tangled
The Towering Inferno
Program:
function: Find
inputs: Ray Wise
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Twin Peaks: Fire Walk with Me
function: And
dependencies: 1
2
function: Find
inputs: Tangled
function: FilterNum
dependencies: 4
inputs: duration
86 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks: Fire Walk with Me" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ray Wise" . } UNION { ?e <pred:name> "Tangled" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "86"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tangled