Question: Which movie is shorter, The Stepford Wives (the one whose duration is 110 minute) or Grimsby (the one whose publication date is 2016-03-11)?
Choices:
Talk to Her
Grimsby
A Prairie Home Companion
Training Day
The Towering Inferno
The Stepford Wives
Pleasantville
The Fifth Element
Rebecca
Curse of the Golden Flower
Answer: Grimsby
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Stepford Wives" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "110"^^xsd:double . } UNION { ?e <pred:name> "Grimsby" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2016-03-11"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Stepford Wives
function: FilterNum
dependencies: 0
inputs: duration
110 minute
=
function: Find
inputs: Grimsby
function: FilterDate
dependencies: 2
inputs: publication date
2016-03-11
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less