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