Question: Which film is longer: Wilson, released 03/03/2017 or Ned Kelly with Mick Jagger?
Choices:
Training Day
Rebecca
Talk to Her
Pleasantville
The Fifth Element
A Prairie Home Companion
Wilson
The Hunchback of Notre Dame
Ned Kelly
Curse of the Golden Flower
Answer: Ned Kelly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wilson" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2017-03-03"^^xsd:date . } UNION { ?e <pred:name> "Ned Kelly" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Mick Jagger" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wilson
function: FilterDate
dependencies: 0
inputs: publication date
2017-03-03
=
function: Find
inputs: Mick Jagger
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Ned Kelly
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater