Question: Which movie is shorter, Dynasty (the one whose publication date is 1979-05-23) or Quadrophenia (the one that has The Who as a performer)?
Choices:
Roots
Luis Miguel
Dynasty
Quadrophenia
The B-52's
Flight of the Conchords
Hollywood
Toni Braxton
Kraftwerk
American Beauty
Program:
function: Find
inputs: Dynasty
function: FilterDate
dependencies: 0
inputs: publication date
1979-05-23
=
function: Find
inputs: The Who
function: Relate
dependencies: 2
inputs: performer
backward
function: Find
inputs: Quadrophenia
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dynasty" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1979-05-23"^^xsd:date . } UNION { ?e <pred:name> "Quadrophenia" . ?e <performer> ?e_1 . ?e_1 <pred:name> "The Who" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dynasty