Question: Which major city has a border in common with the US city of zip codes 91784–91786?
Choices:
Dnipro
Halle (Saale)
Cologne
Wuppertal
Stuttgart
Lyon
Ontario
Aachen
Hamburg
Utrecht
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
91784–91786
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Relate
dependencies: 2
inputs: shares border with
forward
function: FilterConcept
dependencies: 3
inputs: big city
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "91784–91786" .   }
Answer: Ontario