Question: Which has fewer seasons, Barney Miller or Working Girl whose season count is 1?
Choices:
Bleak House
Barney Miller
American Horror Story
Working Girl
Dancing with the Stars
Robot Chicken
Six Feet Under
Seinfeld
Saturday Night's Main Event
Game of Thrones
Answer: Working Girl
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barney Miller" . } UNION { ?e <pred:name> "Working Girl" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Barney Miller
function: Find
inputs: Working Girl
function: FilterNum
dependencies: 1
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
less