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