Question: Which has fewer episodes: L.A. Law, or Superman with 17?
Choices:
Tiny Toon Adventures
Batman Beyond
Aladdin
L.A. Law
Phineas and Ferb
The Cleveland Show
South Park
Superman
American Dad!
The Venture Bros.
Answer: Superman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "L.A. Law" . } UNION { ?e <pred:name> "Superman" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "17"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: L.A. Law
function: Find
inputs: Superman
function: FilterNum
dependencies: 1
inputs: number of episodes
17
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less