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