Question: Which show has fewer episodes, Soap or Into the West (the one whose number of episodes is 6)?
Choices:
The Pacific
Roots
Into the West
Edge of Darkness
The Ten Commandments
George Washington
The Diary of Anne Frank
Soap
Battlestar Galactica
The Civil War
Answer: Into the West
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Soap" . } UNION { ?e <pred:name> "Into the West" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Soap
function: Find
inputs: Into the West
function: FilterNum
dependencies: 1
inputs: number of episodes
6
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less