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