Question: How many Washington counties have the capital Tacoma (whose inception time is 1875) or share a border with King County?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Tacoma
function: FilterYear
dependencies: 0
inputs: inception
1875
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: county of Washington
function: Find
inputs: King County
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: county of Washington
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Washington" .  { ?e <capital> ?e_1 . ?e_1 <pred:name> "Tacoma" . ?e_1 <inception> ?pv . ?pv <pred:year> 1875 .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "King County" .  } }
Answer: 3