Question: Which has the smallest area among the Netherlands provinces that border North Rhine-Westphalia?
Choices:
Drenthe
Utrecht
Overijssel
Friesland
Groningen
North Brabant
North Holland
Limburg
South Holland
Gelderland
Program:
function: Find
inputs: North Rhine-Westphalia
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?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 Rhine-Westphalia" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Limburg