Question: How many counties of Pennsylvania present the origin of Lancaster County's name (the official website for Lancaster County is http://lancaster.ne.gov) or match an administrative division of Pennsylvania ?
Choices:
36
37
38
39
40
41
42
43
44
45
Answer: 39
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" .  { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Lancaster County" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://lancaster.ne.gov" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Pennsylvania" .  } }
Program:
function: Find
inputs: Lancaster County
function: FilterStr
dependencies: 0
inputs: official website
http://lancaster.ne.gov
function: Relate
dependencies: 1
inputs: named after
forward
function: FilterConcept
dependencies: 2
inputs: county of Pennsylvania
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: county of Pennsylvania
function: Or
dependencies: 3
6
function: Count
dependencies: 7