Question: Which show has fewer episodes, Benjamin Franklin (the one whose original language is English) or Star Trek: Deep Space Nine?
Choices:
The Ten Commandments
The Diary of Anne Frank
The Stand
The Civil War
Battlestar Galactica
George Washington
Star Trek: Deep Space Nine
Benjamin Franklin
Roots
The Pacific
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: Deep Space Nine
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Benjamin Franklin" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Star Trek: Deep Space Nine" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Benjamin Franklin