Question: Which movie is shorter, Scent of a Woman (the one whose publication date is 1974-01-01) or The Town (the one whose publication date is 1944-01-01)?
Choices:
The Fugitive
Friends
The Town
The Cure
Neighbours
Scent of a Woman
The Animatrix
Robin Hood
David Copperfield
Eve
Answer: The Town
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scent of a Woman" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1974-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Town" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1944-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Scent of a Woman
function: FilterDate
dependencies: 0
inputs: publication date
1974-01-01
=
function: Find
inputs: The Town
function: FilterDate
dependencies: 2
inputs: publication date
1944-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less