Question: Which movie is longer, The Fast and the Furious (the one that has Dorothy Malone as a cast member) or Spartacus (the one whose publication date is 2004-01-01)?
Choices:
The Fast and the Furious
All Quiet on the Western Front
A Streetcar Named Desire
A Christmas Carol
Shackleton
The Late Shift
The Music Man
The Three Musketeers
The Goodbye Girl
Spartacus
Answer: Spartacus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fast and the Furious" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dorothy Malone" . } UNION { ?e <pred:name> "Spartacus" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2004-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dorothy Malone
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Fast and the Furious
function: And
dependencies: 1
2
function: Find
inputs: Spartacus
function: FilterDate
dependencies: 4
inputs: publication date
2004-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater