Question: What are the number of towns whose country is United Kingdom or whose native label is Chesterfield ?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: market town
function: FindAll
function: FilterStr
dependencies: 3
inputs: native label
Chesterfield
function: FilterConcept
dependencies: 4
inputs: market town
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "market town" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <native_label> ?pv . ?pv <pred:value> "Chesterfield" .  } }
Answer: 6