Question: What is the relation betweem Somerset County (the one that is an administrative division of Pennsylvania) and Pennsylvania
Choices:
official language
political ideology
occupation
location of final assembly
director/manager
original language of film or TV show
doctoral student
located in the administrative territorial entity
notable people with this condition
work location
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Somerset County" . ?e_3 <contains_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Pennsylvania" . ?e_2 <pred:name> "Pennsylvania" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Somerset County
function: And
dependencies: 1
2
function: Find
inputs: Pennsylvania
function: QueryRelation
dependencies: 3
4