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