Question: Which has more episodes, Hercules whose number of episodes is 2 or CBS Schoolbreak Special?
Choices:
American Horror Story
Phineas and Ferb
Bleak House
Robot Chicken
Hercules
Dancing with the Stars
CBS Schoolbreak Special
Game of Thrones
Seinfeld
Six Feet Under
Program:
function: Find
inputs: Hercules
function: FilterNum
dependencies: 0
inputs: number of episodes
2
=
function: Find
inputs: CBS Schoolbreak Special
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hercules" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } UNION { ?e <pred:name> "CBS Schoolbreak Special" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: CBS Schoolbreak Special