Question: Which movie is shorter, Cyrano de Bergerac (the one that was nominated for BAFTA Award for Best Makeup and Hair) or State of Play (the one whose publication date is 2009-06-18)?
Choices:
Cyrano de Bergerac
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Rebecca
The Towering Inferno
State of Play
Curse of the Golden Flower
Pleasantville
Answer: State of Play
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cyrano de Bergerac" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Makeup and Hair" . } UNION { ?e <pred:name> "State of Play" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-06-18"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: BAFTA Award for Best Makeup and Hair
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Cyrano de Bergerac
function: And
dependencies: 1
2
function: Find
inputs: State of Play
function: FilterDate
dependencies: 4
inputs: publication date
2009-06-18
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less