Question: Which one, The Crucible (the one whose production company is 20th Century Fox) or The Singing Detective (the one whose original language is English), has a longer duration?
Choices:
The Hunchback of Notre Dame
Rebecca
Training Day
Talk to Her
The Towering Inferno
Pleasantville
Curse of the Golden Flower
The Crucible
The Singing Detective
The Fifth Element
Answer: The Crucible
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Crucible" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "The Singing Detective" . ?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: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: The Crucible
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: The Singing Detective
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater