Question: Which is shorter, Sun whose narrative location is Italy or Chocolat published on 2001-03-15?
Choices:
Talk to Her
Chocolat
The Hunchback of Notre Dame
Sun
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Rebecca
Pleasantville
Curse of the Golden Flower
Answer: Sun
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sun" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Italy" . } UNION { ?e <pred:name> "Chocolat" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2001-03-15"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Sun
function: And
dependencies: 1
2
function: Find
inputs: Chocolat
function: FilterDate
dependencies: 4
inputs: publication date
2001-03-15
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less