Question: Which has fewer episodes, The Mickey Mouse Club or Merlin whose number of seasons is 1?
Choices:
The Civil War
George Washington
The Mickey Mouse Club
Merlin
The Diary of Anne Frank
Battlestar Galactica
Roots
Edge of Darkness
The Stand
The Ten Commandments
Program:
function: Find
inputs: The Mickey Mouse Club
function: Find
inputs: Merlin
function: FilterNum
dependencies: 1
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mickey Mouse Club" . } UNION { ?e <pred:name> "Merlin" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Merlin