Question: Which one, Naked Lunch (the one whose production company is The Criterion Collection) or Munich (the one whose publication date is 2005-01-01), has less duration?
Choices:
Naked Lunch
Munich
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Talk to Her
The Fifth Element
Training Day
The Towering Inferno
Answer: Naked Lunch
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naked Lunch" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "The Criterion Collection" . } UNION { ?e <pred:name> "Munich" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Criterion Collection
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Naked Lunch
function: And
dependencies: 1
2
function: Find
inputs: Munich
function: FilterDate
dependencies: 4
inputs: publication date
2005-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less