Question: Does Soap or Hannibal (whose number of episodes is 39) have fewer episodes?
Choices:
Phineas and Ferb
Saturday Night's Main Event
Dancing with the Stars
Bleak House
Hannibal
Robot Chicken
Soap
Six Feet Under
Seinfeld
American Horror Story
Answer: Hannibal
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Soap" . } UNION { ?e <pred:name> "Hannibal" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "39"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Soap
function: Find
inputs: Hannibal
function: FilterNum
dependencies: 1
inputs: number of episodes
39
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less