Question: Which movie is longer, Gulliver's Travels (the one whose distributor is Paramount Pictures) or District 9?
Choices:
Rebecca
Gulliver's Travels
The Towering Inferno
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
Training Day
District 9
The Fifth Element
Answer: District 9
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gulliver's Travels" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "District 9" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 1
2
function: Find
inputs: District 9
function: SelectBetween
dependencies: 3
4
inputs: duration
greater