Question: Which movie is shorter, The Lady (the one that is shot in Thailand) or Murder on the Orient Express (the one whose publication date is 2001-01-01)?
Choices:
The Lady
The Three Musketeers
A Christmas Carol
The Late Shift
The Music Man
Murder on the Orient Express
Shackleton
The Challenge
The Goodbye Girl
All Quiet on the Western Front
Answer: Murder on the Orient Express
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lady" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Thailand" . } UNION { ?e <pred:name> "Murder on the Orient Express" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2001-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Thailand
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Lady
function: And
dependencies: 1
2
function: Find
inputs: Murder on the Orient Express
function: FilterDate
dependencies: 4
inputs: publication date
2001-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less