Question: Does The Simpsons or Superman that has 13 episodes have more seasons?
Choices:
The Venture Bros.
Batman Beyond
South Park
Aladdin
Phineas and Ferb
Robot Chicken
The Simpsons
The Cleveland Show
American Dad!
Tiny Toon Adventures
Answer: The Simpsons
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Simpsons" . } UNION { ?e <pred:name> "Superman" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "13"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Simpsons
function: Find
inputs: Superman
function: FilterNum
dependencies: 1
inputs: number of episodes
13
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater