Question: How many independent German cities come with 76531 as the postal code or are the administrative division of Thuringia (administrative division of Germany) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" .  { ?e <postal_code> ?pv . ?pv <pred:value> "76531" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Thuringia" . ?e_2 <contains_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Germany" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
76531
function: FilterConcept
dependencies: 1
inputs: independent city of Germany
function: Find
inputs: Germany
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: Find
inputs: Thuringia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: independent city of Germany
function: Or
dependencies: 2
8
function: Count
dependencies: 9