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