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