Question: What is the Canadian city whose official name is City of Surrey?
Choices:
Kilkenny
Kingston
Halifax
Surrey
Peterborough
Cork
Gatineau
Markham
Trieste
Barrie
Answer: Surrey
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .  ?e <official_name> ?pv . ?pv <pred:value> "City of Surrey" .  }
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: city
function: FindAll
function: FilterStr
dependencies: 3
inputs: official name
City of Surrey
function: FilterConcept
dependencies: 4
inputs: city
function: And
dependencies: 2
5
function: What
dependencies: 6