Question: What is the connection between Orange (the one whose postal code is 92856) to Orange County (the one that shares border with San Diego County)?
Choices:
contains settlement
operator
located in the administrative territorial entity
legislative body
capital of
opposite of
replaces
film release region
distribution
feast day
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Orange" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "92856" . ?e_2 <pred:name> "Orange County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "San Diego County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Orange
function: FilterStr
dependencies: 0
inputs: postal code
92856
function: Find
inputs: San Diego County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Orange County
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5