Question: Does The Bodyguard (that has Kevin Costner as a cast member) or Elizabeth (whose release date is 1998-01-01) have the longer running time?
Choices:
Training Day
Talk to Her
The Bodyguard
Rebecca
The Fifth Element
Curse of the Golden Flower
The Towering Inferno
Elizabeth
Pleasantville
A Prairie Home Companion
Answer: The Bodyguard
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Bodyguard" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kevin Costner" . } UNION { ?e <pred:name> "Elizabeth" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kevin Costner
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 1
2
function: Find
inputs: Elizabeth
function: FilterDate
dependencies: 4
inputs: publication date
1998-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater