Question: Which has a greater length, Carrie (publication date is 2002-01-01) or Patch Adams (publication date is 1999-03-25)?
Choices: A Streetcar Named Desire
The Three Musketeers
A Christmas Carol
Patch Adams
The Music Man
Shackleton
Carrie
The Late Shift
The Challenge
The Goodbye Girl
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carrie" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2002-01-01"^^xsd:date . } UNION { ?e <pred:name> "Patch Adams" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1999-03-25"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Carrie
function: FilterDate
dependencies: 0
inputs: publication date
2002-01-01
=
function: Find
inputs: Patch Adams
function: FilterDate
dependencies: 2
inputs: publication date
1999-03-25
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: Carrie