Question: Among the animated series whose genre is science fiction (the one that is the genre of Lost),which one has the largest number of episodes ?
Choices:
Futurama
Tiny Toon Adventures
American Dad!
Aladdin
Batman Beyond
Robot Chicken
Family Guy
The Cleveland Show
Star Trek: The Animated Series
Ben 10
Answer: Family Guy
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> "Lost" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lost
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 episodes
largest