Question: Does The Fall (the one whose publication date is 2009-03-12) or The Turning Point (the one whose narrative location is Oklahoma) have lesser duration ?
Choices:
The Turning Point
Training Day
The Fall
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Rebecca
Curse of the Golden Flower
Answer: The Fall
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fall" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-03-12"^^xsd:date . } UNION { ?e <pred:name> "The Turning Point" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Oklahoma" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Fall
function: FilterDate
dependencies: 0
inputs: publication date
2009-03-12
=
function: Find
inputs: Oklahoma
function: Relate
dependencies: 2
inputs: narrative location
backward
function: Find
inputs: The Turning Point
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less