Question: Which province of the Netherlands shares border with North Brabant and contains Arnhem ?
Choices:
Gelderland
North Holland
Limburg
Utrecht
Friesland
South Holland
Groningen
Zeeland
North Brabant
Overijssel
Program:
function: Find
inputs: North Brabant
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: Find
inputs: Arnhem
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "North Brabant" .  ?e_2 <located_in_the_administrative_territorial_entity> ?e . ?e_2 <pred:name> "Arnhem" .  }
Answer: Gelderland