Question: Which is longer, Lawless or Chocolat published on 2016-07-28?
Choices:
Pleasantville
The Towering Inferno
Training Day
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Curse of the Golden Flower
Lawless
A Prairie Home Companion
Chocolat
Program:
function: Find
inputs: Lawless
function: Find
inputs: Chocolat
function: FilterDate
dependencies: 1
inputs: publication date
2016-07-28
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lawless" . } UNION { ?e <pred:name> "Chocolat" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2016-07-28"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lawless