Question: How many countyies of North Carolina have the captital Raleigh or are located in North Carolina?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of North Carolina" .  { ?e <capital> ?e_1 . ?e_1 <pred:name> "Raleigh" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "North Carolina" .  } }
Program:
function: Find
inputs: Raleigh
function: Relate
dependencies: 0
inputs: capital
backward
function: FilterConcept
dependencies: 1
inputs: county of North Carolina
function: Find
inputs: North Carolina
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of North Carolina
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 11