Question: Which movie is shorter, Phoenix (the one that has Kathryn Joosten as a cast member) or Puss in Boots (the one whose publication date is 1988-01-01)?
Choices:
Phoenix
The Hunchback of Notre Dame
Puss in Boots
Curse of the Golden Flower
Rebecca
Talk to Her
The Towering Inferno
Pleasantville
Training Day
The Fifth Element
Program:
function: Find
inputs: Kathryn Joosten
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Phoenix
function: And
dependencies: 1
2
function: Find
inputs: Puss in Boots
function: FilterDate
dependencies: 4
inputs: publication date
1988-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Phoenix" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kathryn Joosten" . } UNION { ?e <pred:name> "Puss in Boots" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1988-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Puss in Boots