Question: How many counties of Maine do we know containing the capital Bangor (dialing code 207) or whose FIPS 6-4 (US counties) is 23029  ?
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> "county of Maine" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Bangor" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "207" .  } UNION { ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "23029" .  } }
Program:
function: Find
inputs: Bangor
function: FilterStr
dependencies: 0
inputs: local dialing code
207
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Maine
function: FindAll
function: FilterStr
dependencies: 4
inputs: FIPS 6-4 (US counties)
23029
function: FilterConcept
dependencies: 5
inputs: county of Maine
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2