Question: What is the number of independent cities that have a border with Newport News or that have 2--755521 as a Dewey Decimal Classification?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Newport News" .  } UNION { ?e <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--755521" .  } }
Program:
function: Find
inputs: Newport News
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: independent city
function: FindAll
function: FilterStr
dependencies: 3
inputs: Dewey Decimal Classification
2--755521
function: FilterConcept
dependencies: 4
inputs: independent city
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 4