Question: Which movie is longer, Total Recall (the one whose publication date is 2012-08-23) or The Rainmaker (the one that is designed by Hal Pereira)?
Choices:
The Fifth Element
The Rainmaker
Talk to Her
Training Day
Pleasantville
Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Total Recall
The Hunchback of Notre Dame
Program:
function: Find
inputs: Total Recall
function: FilterDate
dependencies: 0
inputs: publication date
2012-08-23
=
function: Find
inputs: Hal Pereira
function: Relate
dependencies: 2
inputs: production designer
backward
function: Find
inputs: The Rainmaker
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Total Recall" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2012-08-23"^^xsd:date . } UNION { ?e <pred:name> "The Rainmaker" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Hal Pereira" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Total Recall