Question: Which movie is longer, The Good, the Bad, the Weird or Robin Hood (the one whose distributor is 20th Century Fox)?
Choices:
A Prairie Home Companion
Talk to Her
The Good, the Bad, the Weird
Robin Hood
Training Day
Rebecca
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
Answer: The Good, the Bad, the Weird
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Good, the Bad, the Weird" .  } UNION { ?e <pred:name> "Robin Hood" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Good, the Bad, the Weird
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Robin Hood
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater