Question: How many New Jersey cities have the native label Hoboken or are its capital?
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> "city in New Jersey" .  { ?e <native_label> ?pv . ?pv <pred:value> "Hoboken" .  } UNION { ?e <capital_of> ?e_1 . ?e_1 <pred:name> "New Jersey" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Hoboken
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: Find
inputs: New Jersey
function: Relate
dependencies: 3
inputs: capital of
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2