Question: Which has a lesser duration, South Pacific (whose publication date is 1958-01-01) or Havana (whose genre is drama film)?
Choices:
A Prairie Home Companion
Rebecca
Pleasantville
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
Training Day
Havana
The Hunchback of Notre Dame
South Pacific
Program:
function: Find
inputs: South Pacific
function: FilterDate
dependencies: 0
inputs: publication date
1958-01-01
=
function: Find
inputs: drama film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Havana
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Pacific" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1958-01-01"^^xsd:date . } UNION { ?e <pred:name> "Havana" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Havana