Question: Among the animated series whose genre is science fiction (the one that is the genre of Batman Beyond), which one has the largest number of seasons?
Choices: Ben 10
Family Guy
The Cleveland Show
Star Trek: The Animated Series
Aladdin
Batman Beyond
Robot Chicken
Tiny Toon Adventures
American Dad!
Futurama
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" . ?e <genre> ?e_1 . ?e_1 <pred:name> "science fiction" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Batman Beyond" .  ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Batman Beyond
function: Relate
dependencies: 0
inputs: genre
forward
function: Find
inputs: science fiction
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: animated series
function: SelectAmong
dependencies: 5
inputs: number of seasons
largest
Answer: Family Guy