Question: Which Netherlands municipality has the capital Rotterdam (the one whose postal code is 3000–3089) and is an administrative division of South Holland?
Choices:
Nijmegen
Groningen
Maastricht
Hilversum
Alkmaar
Rotterdam
Dordrecht
Amsterdam
Leiden
Delft
Answer: Rotterdam
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "municipality of the Netherlands" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Rotterdam" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "3000–3089" .  ?e_2 <contains_administrative_territorial_entity> ?e . ?e_2 <pred:name> "South Holland" .  }
Program:
function: Find
inputs: Rotterdam
function: FilterStr
dependencies: 0
inputs: postal code
3000–3089
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: municipality of the Netherlands
function: Find
inputs: South Holland
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: municipality of the Netherlands
function: And
dependencies: 3
6
function: What
dependencies: 7