Question: Which has a greater population, Limburg (which contains the administrative division Maastricht) or Friesland?
Choices:
Overijssel
South Holland
Zeeland
North Holland
Gelderland
Utrecht
Groningen
Limburg
North Brabant
Drenthe
Program:
function: Find
inputs: Maastricht
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Limburg
function: And
dependencies: 1
2
function: Find
inputs: Friesland
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Limburg" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Maastricht" .   } UNION { ?e <pred:name> "Friesland" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Limburg