Question: What spans a larger area of space, Greater Manchester or Hertfordshire?
Choices:
Norfolk
Staffordshire
Greater Manchester
Cumbria
Derbyshire
Hertfordshire
Northumberland
Essex
Somerset
Warwickshire
Program:
function: Find
inputs: Greater Manchester
function: Find
inputs: Hertfordshire
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greater Manchester" .  } UNION { ?e <pred:name> "Hertfordshire" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hertfordshire