Question: Does Constantine (that has Shia LaBeouf as a cast member) or Jane Eyre (whose release date is 2011-12-01) have the longer running time?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
The Fifth Element
Pleasantville
Training Day
Constantine
Jane Eyre
Talk to Her
Program:
function: Find
inputs: Shia LaBeouf
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Find
inputs: Jane Eyre
function: FilterDate
dependencies: 4
inputs: publication date
2011-12-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Constantine" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Shia LaBeouf" . } UNION { ?e <pred:name> "Jane Eyre" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-12-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jane Eyre