Question: Which movie is longer, Get Carter (the one whose genre is film noir) or Iceland (the one whose title is Iceland)?
Choices: Get Carter
Iceland
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Talk to Her
Curse of the Golden Flower
Training Day
The Towering Inferno
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Get Carter" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film noir" . } UNION { ?e <pred:name> "Iceland" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Iceland" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: film noir
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Get Carter
function: And
dependencies: 1
2
function: Find
inputs: Iceland
function: FilterStr
dependencies: 4
inputs: title
Iceland
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Get Carter