Question: How many television stations have a headquarters location is the United States city that is the death place of Savannah (who has the occupation of model)
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television station" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_2 <place_of_death> ?e_1 . ?e_2 <pred:name> "Savannah" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "model" .   }
Program:
function: Find
inputs: model
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Savannah
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Relate
dependencies: 5
inputs: headquarters location
backward
function: FilterConcept
dependencies: 6
inputs: television station
function: Count
dependencies: 7