Question: How many science fictions have the genre of the television series that is followed by Crusade that follows Babylon 5?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science fiction" . ?e_1 <genre> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "television series" . ?e_1 <followed_by> ?e_2 . ?e_2 <pred:name> "Crusade" . ?e_2 <follows> ?e_3 . ?e_3 <pred:name> "Babylon 5" .   }
Program:
function: Find
inputs: Babylon 5
function: Relate
dependencies: 0
inputs: follows
backward
function: Find
inputs: Crusade
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: Relate
dependencies: 5
inputs: genre
forward
function: FilterConcept
dependencies: 6
inputs: science fiction
function: Count
dependencies: 7
Answer: 2