Question: How many German states either share a border with Hesse or have an ISO 3166-2 code of DE-HB?
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> "state of Germany" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Hesse" .  } UNION { ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "DE-HB" .  } }
Program:
function: Find
inputs: Hesse
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: FindAll
function: FilterStr
dependencies: 3
inputs: ISO 3166-2 code
DE-HB
function: FilterConcept
dependencies: 4
inputs: state of Germany
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 6