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