Question: How many Dutch province border a state of Germany that surrounds Bremen enclave located also in Germany ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Bremen
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: enclave within
forward
function: FilterConcept
dependencies: 4
inputs: state of Germany
function: Relate
dependencies: 5
inputs: shares border with
forward
function: FilterConcept
dependencies: 6
inputs: province of the Netherlands
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of Germany" . ?e_2 <enclave_within> ?e_1 . ?e_2 <pred:name> "Bremen" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Germany" .   }
Answer: 3