Question: Which is shorter, The Phantom of the Opera (released 1925-01-01) or Coming Home, originally from Germany?
Choices:
A Streetcar Named Desire
A Christmas Carol
All Quiet on the Western Front
The Three Musketeers
The Challenge
The Goodbye Girl
The Music Man
The Phantom of the Opera
Coming Home
Shackleton
Answer: Coming Home
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Phantom of the Opera" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1925-01-01"^^xsd:date . } UNION { ?e <pred:name> "Coming Home" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Phantom of the Opera
function: FilterDate
dependencies: 0
inputs: publication date
1925-01-01
=
function: Find
inputs: Germany
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Coming Home
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less