Question: What administrative territorial entity of Canada contains the capital city whose postal code is N8V?
Choices:
Durham
William Demarest
Nunavut
Essex County
Northwest Territories
Clint Black
Yukon
London Borough of Tower Hamlets
Bruce Campbell
South Pacific
Answer: Essex County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity of Canada" . ?e_1 <capital_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <postal_code> ?pv_1 . ?pv_1 <pred:value> "N8V" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
N8V
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: capital of
forward
function: FilterConcept
dependencies: 3
inputs: administrative territorial entity of Canada
function: What
dependencies: 4