Question: Which is longer, A Man for All Seasons directed by Charlton Heston or Midnight's Children originally in English?
Choices:
The Music Man
A Christmas Carol
The Goodbye Girl
The Three Musketeers
A Streetcar Named Desire
The Late Shift
Shackleton
All Quiet on the Western Front
A Man for All Seasons
The Challenge
Program:
function: Find
inputs: Charlton Heston
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: A Man for All Seasons
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: Midnight's Children
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Man for All Seasons" . ?e <director> ?e_1 . ?e_1 <pred:name> "Charlton Heston" .   } UNION { ?e <pred:name> "Midnight's Children" . ?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
Answer: A Man for All Seasons