Question: Which show has fewer seasons, Sherlock or The Penguins of Madagascar?
Choices:
Tiny Toon Adventures
The Penguins of Madagascar
The Cleveland Show
Sherlock
Phineas and Ferb
Robot Chicken
South Park
Aladdin
American Dad!
The Venture Bros.
Program:
function: Find
inputs: Sherlock
function: Find
inputs: The Penguins of Madagascar
function: SelectBetween
dependencies: 0
1
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherlock" .  } UNION { ?e <pred:name> "The Penguins of Madagascar" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Penguins of Madagascar