Question: Which movie is shorter, Barcelona (the one whose duration is 101 minute) or Wuthering Heights (the one whose publication date is 2011-01-01)?
Choices:
Barcelona
Talk to Her
Curse of the Golden Flower
Rebecca
Training Day
The Fifth Element
The Towering Inferno
Wuthering Heights
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: Barcelona
function: FilterNum
dependencies: 0
inputs: duration
101 minute
=
function: Find
inputs: Wuthering Heights
function: FilterDate
dependencies: 2
inputs: publication date
2011-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barcelona" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "101"^^xsd:double . } UNION { ?e <pred:name> "Wuthering Heights" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2011-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barcelona