Question: What number of the independent cities in the death place of Tom Scott(his birthplace is Baltimore)?
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> "independent city" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Tom Scott" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Baltimore" .   }
Program:
function: Find
inputs: Baltimore
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Tom Scott
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: independent city
function: Count
dependencies: 5
Answer: 1