Question: Which Pennsylvania county contains Pittsburgh (the one that contains University of Pittsburgh)?
Choices:
Westmoreland County
Cumberland County
Lehigh County
Washington County
Allegheny County
Fayette County
Bucks County
Franklin County
Warren County
Mercer County
Program:
function: Find
inputs: University of Pittsburgh
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Pittsburgh
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Pennsylvania
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Pittsburgh" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "University of Pittsburgh" .   }
Answer: Allegheny County