Question: How many counties in Pennsylvania have Jefferson County (established on 1818) as the capital or belong to USA ?
Choices: 38
39
40
41
42
43
44
45
46
47
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Jefferson County" . ?e_1 <inception> ?pv . ?pv <pred:year> 1818 .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Jefferson County
function: FilterYear
dependencies: 0
inputs: inception
1818
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Pennsylvania
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: county of Pennsylvania
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 39