Question: Which one has more duration, Alien vs Predator, published on 2004-11-19 or Boogie Nights?
Choices:
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Training Day
Alien vs. Predator
Talk to Her
Curse of the Golden Flower
Boogie Nights
Program:
function: Find
inputs: Alien vs. Predator
function: FilterDate
dependencies: 0
inputs: publication date
2004-11-19
=
function: Find
inputs: Boogie Nights
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alien vs. Predator" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2004-11-19"^^xsd:date . } UNION { ?e <pred:name> "Boogie Nights" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Boogie Nights