Question: What city has the native name Winchester and is the headquarters location of Winchester College whose postal code is SO23 9NA?
Choices:
Abidjan
Kingston
Cork
Dundee
Chihuahua
Winchester
Kilkenny
Trieste
Santo Domingo
Bergen
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Winchester
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Winchester College
function: Relate
dependencies: 3
inputs: headquarters location
forward
function: QFilterStr
dependencies: 4
inputs: postal code
SO23 9NA
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <native_label> ?pv . ?pv <pred:value> "Winchester" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Winchester College" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e ] <postal_code> ?qpv . ?qpv <pred:value> "SO23 9NA" .  }
Answer: Winchester