Question: Which movie is shorter, Rear Window (the one whose duration is 85 minute) or Traffic (the one whose publication date is 2001-04-07)?
Choices:
All Quiet on the Western Front
Shackleton
The Music Man
The Three Musketeers
A Christmas Carol
Traffic
Rear Window
The Late Shift
The Challenge
The Goodbye Girl
Program:
function: Find
inputs: Rear Window
function: FilterNum
dependencies: 0
inputs: duration
85 minute
=
function: Find
inputs: Traffic
function: FilterDate
dependencies: 2
inputs: publication date
2001-04-07
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rear Window" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "85"^^xsd:double . } UNION { ?e <pred:name> "Traffic" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2001-04-07"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rear Window