Question: Does the longer run time belong to Hope Springs, published on 2003-01-01, or Gettysburg, featuring Martin Sheen as a cast member?
Choices: The Hunchback of Notre Dame
Training Day
A Prairie Home Companion
Curse of the Golden Flower
Gettysburg
The Fifth Element
Rebecca
Pleasantville
Hope Springs
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hope Springs" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2003-01-01"^^xsd:date . } UNION { ?e <pred:name> "Gettysburg" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Martin Sheen" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hope Springs
function: FilterDate
dependencies: 0
inputs: publication date
2003-01-01
=
function: Find
inputs: Martin Sheen
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Gettysburg
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Gettysburg