Question: How many metropolitan boroughs have the capital Oldham (that is the headquarters location of Oldham Athletic A.F.C.)?
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> "metropolitan borough" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Oldham" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Oldham Athletic A.F.C." .   }
Program:
function: Find
inputs: Oldham Athletic A.F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Oldham
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: metropolitan borough
function: Count
dependencies: 5