Question: Is Utrecht or bordering North Holland larger by area?
Choices:
Gelderland
North Holland
North Brabant
South Holland
Overijssel
Zeeland
Friesland
Drenthe
Limburg
Utrecht
Program:
function: Find
inputs: North Holland
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Utrecht
function: And
dependencies: 1
2
function: Find
inputs: North Holland
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Utrecht" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "North Holland" .   } UNION { ?e <pred:name> "North Holland" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Holland