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