Question: What has a shorter duration, About a Boy which was published on 2002-06-07, or I Heart Huckabees?
Choices:
Pleasantville
Curse of the Golden Flower
I Heart Huckabees
Talk to Her
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
About a Boy
Rebecca
Training Day
Answer: About a Boy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "About a Boy" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2002-06-07"^^xsd:date . } UNION { ?e <pred:name> "I Heart Huckabees" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: About a Boy
function: FilterDate
dependencies: 0
inputs: publication date
2002-06-07
=
function: Find
inputs: I Heart Huckabees
function: SelectBetween
dependencies: 1
2
inputs: duration
less