Question: Which movie is shorter, Aurora (the one whose title is Qualcosa di biondo) or The Firm (the one whose publication date is 2009-01-01)?
Choices:
Pleasantville
The Firm
Curse of the Golden Flower
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Training Day
Aurora
Answer: The Firm
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aurora" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Qualcosa di biondo" . } UNION { ?e <pred:name> "The Firm" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2009-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Aurora
function: FilterStr
dependencies: 0
inputs: title
Qualcosa di biondo
function: Find
inputs: The Firm
function: FilterDate
dependencies: 2
inputs: publication date
2009-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less