Question: Which television series has a number of episodes not equal to 0 and has the character Superman (the one that derives Superman II: The Richard Donner Cut)?
Choices:
American Dad!
South Park
Mobile Suit Gundam
The Cleveland Show
Superman
Limitless
Batman Beyond
Aladdin
Robot Chicken
Tiny Toon Adventures
Answer: Superman
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "0"^^xsd:double ) . ?e <characters> ?e_1 . ?e_1 <pred:name> "Superman" . ?e_2 <based_on> ?e_1 . ?e_2 <pred:name> "Superman II: The Richard Donner Cut" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
0
!=
function: FilterConcept
dependencies: 1
inputs: television series
function: Find
inputs: Superman II: The Richard Donner Cut
function: Relate
dependencies: 3
inputs: based on
forward
function: Find
inputs: Superman
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: characters
backward
function: FilterConcept
dependencies: 7
inputs: television series
function: And
dependencies: 2
8
function: What
dependencies: 9