Question: Which has fewer people, Friesland or Groningen (the one that shares border with Lower Saxony)?
Choices:
Friesland
South Holland
North Holland
Groningen
Overijssel
Zeeland
Gelderland
Utrecht
North Brabant
Limburg
Answer: Groningen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friesland" .  } UNION { ?e <pred:name> "Groningen" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Lower Saxony" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Friesland
function: Find
inputs: Lower Saxony
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Groningen
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less