Question: Which movie is longer, The Merry Widow (the one whose duration is 105 minute) or Dressed to Kill (the one that is designed by Richard Day)?
Choices: The Fifth Element
Talk to Her
The Merry Widow
Pleasantville
The Towering Inferno
Rebecca
Training Day
Dressed to Kill
Curse of the Golden Flower
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Merry Widow" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "105"^^xsd:double . } UNION { ?e <pred:name> "Dressed to Kill" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Richard Day" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Merry Widow
function: FilterNum
dependencies: 0
inputs: duration
105 minute
=
function: Find
inputs: Richard Day
function: Relate
dependencies: 2
inputs: production designer
backward
function: Find
inputs: Dressed to Kill
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: The Merry Widow