Question: Which show has fewer episodes, Hill Street Blues or Madison (the one whose number of seasons is 5)?
Choices:
Saturday Night's Main Event
Madison
Six Feet Under
Robot Chicken
American Horror Story
Hill Street Blues
Phineas and Ferb
Bleak House
Game of Thrones
Dancing with the Stars
Answer: Madison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hill Street Blues" . } UNION { ?e <pred:name> "Madison" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hill Street Blues
function: Find
inputs: Madison
function: FilterNum
dependencies: 1
inputs: number of seasons
5
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less