Question: Which movie is longer, Lady in the Water or Cold War (the one whose title is Cold War)?
Choices:
The Towering Inferno
A Prairie Home Companion
Cold War
Talk to Her
Training Day
Lady in the Water
Curse of the Golden Flower
Pleasantville
Rebecca
The Fifth Element
Answer: Lady in the Water
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lady in the Water" . } UNION { ?e <pred:name> "Cold War" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Cold War" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lady in the Water
function: Find
inputs: Cold War
function: FilterStr
dependencies: 1
inputs: title
Cold War
function: SelectBetween
dependencies: 0
2
inputs: duration
greater