Question: Which movie is longer, Coming Home (the one that has Jon Voight as a cast member) or Cleopatra (the one whose duration is 125 minute)?
Choices: Curse of the Golden Flower
Cleopatra
The Fifth Element
Coming Home
Pleasantville
A Prairie Home Companion
Talk to Her
The Towering Inferno
Rebecca
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Coming Home" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jon Voight" . } UNION { ?e <pred:name> "Cleopatra" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "125"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jon Voight
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Coming Home
function: And
dependencies: 1
2
function: Find
inputs: Cleopatra
function: FilterNum
dependencies: 4
inputs: duration
125 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Coming Home