Question: Which film has the longer running time, Mighty Joe Young (released on 1949-01-01) or We Were Soldiers?
Choices:
The Fifth Element
A Prairie Home Companion
Mighty Joe Young
Rebecca
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
The Towering Inferno
We Were Soldiers
Program:
function: Find
inputs: Mighty Joe Young
function: FilterDate
dependencies: 0
inputs: publication date
1949-01-01
=
function: Find
inputs: We Were Soldiers
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mighty Joe Young" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1949-01-01"^^xsd:date . } UNION { ?e <pred:name> "We Were Soldiers" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: We Were Soldiers