Question: Which movie is longer, Sherlock Holmes (the one whose publication date is 2010-01-01) or September (the one that has Sam Waterston as a cast member)?
Choices:
The Towering Inferno
September
The Hunchback of Notre Dame
Training Day
The Fifth Element
Curse of the Golden Flower
Rebecca
Pleasantville
Sherlock Holmes
A Prairie Home Companion
Answer: Sherlock Holmes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherlock Holmes" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-01-01"^^xsd:date . } UNION { ?e <pred:name> "September" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sam Waterston" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Sherlock Holmes
function: FilterDate
dependencies: 0
inputs: publication date
2010-01-01
=
function: Find
inputs: Sam Waterston
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: September
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater