Question: How many Massachusetts counties are there whose capital is the United States city that shares a border with Berkeley (whose native name is Berkeley)?
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> "county of Massachusetts" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Berkeley" . ?e_2 <native_label> ?pv . ?pv <pred:value> "Berkeley" .   }
Program:
function: Find
inputs: Berkeley
function: FilterStr
dependencies: 0
inputs: native label
Berkeley
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: county of Massachusetts
function: Count
dependencies: 5