Question: What is the link between Shelby County (that is an administrative division of Indiana) and Marion County (that contains Indianapolis)?
Choices:
manner of death
officially opened by
chief executive officer
legal form
nominated for
military casualty classification
subject has role
shares border with
dedicated to
replaces
Program:
function: Find
inputs: Indiana
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Shelby County
function: And
dependencies: 1
2
function: Find
inputs: Indianapolis
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Marion County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shelby County" . ?e_3 <contains_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Indiana" . ?e_2 <pred:name> "Marion County" . ?e_4 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_4 <pred:name> "Indianapolis" . ?e_1 ?p ?e_2 .  }
Answer: shares border with