Question: Which city borders Pisa and has a postal code 57121-57128 ?
Choices:
Chihuahua
Kingston
Bergen
Livorno
Cairo
Dundee
Trieste
Kilkenny
Santo Domingo
Abidjan
Answer: Livorno
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <postal_code> ?pv . ?pv <pred:value> "57121–57128" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Pisa" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
57121–57128
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: Pisa
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6