Question: Which is lengthier: The Damned, featuring Oliver Reed as a cast member, or Earth (issued on 1998-01-01)?
Choices:
Rebecca
The Hunchback of Notre Dame
The Fifth Element
The Damned
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
Training Day
Earth
Talk to Her
Program:
function: Find
inputs: Oliver Reed
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Damned
function: And
dependencies: 1
2
function: Find
inputs: Earth
function: FilterDate
dependencies: 4
inputs: publication date
1998-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Damned" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Oliver Reed" . } UNION { ?e <pred:name> "Earth" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Earth