Question: Does the smaller run of seasons belong to Barney Miller or to ER?
Choices:
Barney Miller
Six Feet Under
Phineas and Ferb
ER
Bleak House
Game of Thrones
Seinfeld
American Horror Story
Robot Chicken
Dancing with the Stars
Program:
function: Find
inputs: Barney Miller
function: Find
inputs: ER
function: SelectBetween
dependencies: 0
1
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barney Miller" .  } UNION { ?e <pred:name> "ER" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barney Miller