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