Question: Which area is larger, Cheshire or Buckinghamshire?
Choices:
Cumbria
West Midlands
Norfolk
Derbyshire
Buckinghamshire
Northumberland
Warwickshire
Somerset
Staffordshire
Cheshire
Program:
function: Find
inputs: Cheshire
function: Find
inputs: Buckinghamshire
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheshire" .  } UNION { ?e <pred:name> "Buckinghamshire" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cheshire