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