Question: Which movie is longer, Luther (the one whose production company is Australian Broadcasting Corporation) or Aberdeen (the one whose original language is English)?
Choices:
Luther
Aberdeen
The Fifth Element
Pleasantville
Curse of the Golden Flower
Training Day
Rebecca
Talk to Her
A Prairie Home Companion
The Towering Inferno
Answer: Aberdeen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Luther" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Australian Broadcasting Corporation" .   } UNION { ?e <pred:name> "Aberdeen" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Australian Broadcasting Corporation
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Luther
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: Aberdeen
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater