Question: How many science fiction films are the genre of Stargate Atlantis and the genre of Stephen King (whose occupation is writer)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
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:name> "Stargate Atlantis" .  ?e_2 <genre> ?e . ?e_2 <pred:name> "Stephen King" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "writer" .  }
Program:
function: Find
inputs: Stargate Atlantis
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: science fiction
function: Find
inputs: writer
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Stephen King
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: genre
forward
function: FilterConcept
dependencies: 7
inputs: science fiction
function: And
dependencies: 2
8
function: Count
dependencies: 9