Question: What is the number of states of Germany whose ISO 3166-2 code is DE-NW or whose short name is Beieren ?
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 <ISO_3166-2_code> ?pv . ?pv <pred:value> "DE-NW" .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "Beieren" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
DE-NW
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: FindAll
function: FilterStr
dependencies: 3
inputs: short name
Beieren
function: FilterConcept
dependencies: 4
inputs: state of Germany
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2