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