Question: What is the connection between Northampton County (the one that has the captital Easton) to Pennsylvania
Choices:
located in the administrative territorial entity
applies to jurisdiction
risk factor
programming language
dedicated to
partner
medical condition
godparent
sport
successful candidate
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Northampton County" . ?e_1 <capital> ?e_3 . ?e_3 <pred:name> "Easton" . ?e_2 <pred:name> "Pennsylvania" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Easton
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Northampton County
function: And
dependencies: 1
2
function: Find
inputs: Pennsylvania
function: QueryRelation
dependencies: 3
4