Question: Does The Adventures of Tintin (the one that uses the language English) or Oliver Twist (the one whose number of episodes is 5) have the less number of episodes?
Choices:
Roots
The Adventures of Tintin
Battlestar Galactica
George Washington
The Diary of Anne Frank
The Pacific
The Civil War
The Ten Commandments
Oliver Twist
The Stand
Answer: Oliver Twist
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Adventures of Tintin" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Oliver Twist" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: The Adventures of Tintin
function: And
dependencies: 1
2
function: Find
inputs: Oliver Twist
function: FilterNum
dependencies: 4
inputs: number of episodes
5
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less