Question: Which movie is shorter, The Quiet American (the one that origins from France) or Unforgiven (the one whose publication date is 2013-09-06)?
Choices: The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Unforgiven
Talk to Her
Curse of the Golden Flower
Pleasantville
The Quiet American
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Quiet American" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "France" . } UNION { ?e <pred:name> "Unforgiven" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2013-09-06"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Quiet American
function: And
dependencies: 1
2
function: Find
inputs: Unforgiven
function: FilterDate
dependencies: 4
inputs: publication date
2013-09-06
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The Quiet American