Question: What is the relation between Midland (whose postal code is 48640–48686) and Michigan?
Choices:
religious order
military rank
soundtrack album
indigenous to
takes place in fictional universe
subject has role
medical condition
commander of
located in the administrative territorial entity
appointed by
Program:
function: Find
inputs: Midland
function: FilterStr
dependencies: 0
inputs: postal code
48640–48686
function: Find
inputs: Michigan
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Midland" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "48640–48686" . ?e_2 <pred:name> "Michigan" . ?e_1 ?p ?e_2 .  }
Answer: located in the administrative territorial entity