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