Question: Which has fewer episodes, Brideshead Revisited starring John Gielgud or Las Vegas originally in English?
Choices:
Battlestar Galactica
Edge of Darkness
The Diary of Anne Frank
Brideshead Revisited
Las Vegas
Roots
George Washington
The Pacific
The Civil War
The Ten Commandments
Answer: Brideshead Revisited
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brideshead Revisited" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Gielgud" .   } UNION { ?e <pred:name> "Las Vegas" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Gielgud
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Brideshead Revisited
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: Las Vegas
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
less