Question: Which movie is shorter, Radio (the one that has S. Epatha Merkerson as a cast member) or Cleopatra (the one whose duration is 100 minute)?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
Rebecca
Pleasantville
The Fifth Element
Cleopatra
Radio
Curse of the Golden Flower
Talk to Her
Training Day
Program:
function: Find
inputs: S. Epatha Merkerson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Radio
function: And
dependencies: 1
2
function: Find
inputs: Cleopatra
function: FilterNum
dependencies: 4
inputs: duration
100 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Radio" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "S. Epatha Merkerson" . } UNION { ?e <pred:name> "Cleopatra" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "100"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cleopatra