Question: What number of market towns was Gordon Brown (the one that was born in Chesterfield) born?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "market town" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Gordon Brown" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Chesterfield" .   }
Program:
function: Find
inputs: Chesterfield
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Gordon Brown
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: market town
function: Count
dependencies: 5