Question: Which movie is longer, Death on the Nile (the one whose date of first performance is 2004-04-12) or George Washington (the one that is shot in North Carolina)?
Choices:
The Late Shift
The Three Musketeers
A Christmas Carol
Death on the Nile
All Quiet on the Western Front
George Washington
Shackleton
The Challenge
The Goodbye Girl
A Streetcar Named Desire
Program:
function: Find
inputs: Death on the Nile
function: FilterDate
dependencies: 0
inputs: date of first performance
2004-04-12
=
function: Find
inputs: North Carolina
function: Relate
dependencies: 2
inputs: filming location
backward
function: Find
inputs: George Washington
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Death on the Nile" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:date> "2004-04-12"^^xsd:date . } UNION { ?e <pred:name> "George Washington" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "North Carolina" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Death on the Nile